mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
The test does (among other things) the following: 1. Create a cache reader with buffer of size 1 and fill the buffer. 2. Update the cache. 3. Check that the reader produces the first mutation as seen before the update (because the buffer fill should have snapshotted the first mutation), and produces other mutation as seen after the update. However, the test is not guaranteed to stop after the update succeeds. Even during a successful update, an allocation might have failed (and been retried by an allocation_section), which will cause the body of with_allocation_failures to run again. On subsequent runs the last check (the "3." above) fails, because the first mutation is snapshotted already with the new version. Fix that. Closes scylladb/scylladb#15634