Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
Low
Description
RowCacheTests were flaky and while investigating, I found that it does not store all the keys to disk.
The reason is that we use OHCache and call hotKeyIterator on it. This is not guaranteed to return the number of keys we want. Here is the documentation from OHCache
/**
- Builds an iterator over the N most recently used keys returning deserialized objects.
- You must call
{@code close()}
on the returned iterator.
- <p>
- Note: During a rehash, the implementation might return keys twice or not at all.
- </p>
*/
CloseableIterator<K> hotKeyIterator(int n);
Attachments
Attachments
Issue Links
- links to