You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classREPRO_118extendsDMTestSuite {
// TODO enable this once dm-flakey is fixed
ignore("don't merge when the asking region entirely exists in the caching device") {
slowDevice(Sector.M(128)) { _slow =>Linear.Table(_slow).create { slow =>
fastDevice(Sector.M(32)) { _fast =>Linear.Table(_fast).create { fast =>Writeboost.sweepCaches(fast)
Writeboost.Table(slow, fast).create { s =>valdata=DataBuffer.random(Sector(4).toB.toInt)
s.bdev.write(Sector(1), data)
s.dropTransient()
// the data is cached// we don't merge the backing data and the cached data// but instead directly read the cached data
slow.reload(Flakey.Table(_slow, 0, 1))
assert(s.bdev.read(Sector(1), Sector(4)) isSameAs data)
}
}}
}}
}
}
If the read is partially hit, we always do merging: reading the backing data and read the cached data and then merge them.
but if the wanting data is all found in the caching device, we don't need to merge like non-partial read-hit case.
The text was updated successfully, but these errors were encountered: