mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 11:22:01 +00:00
When the highest tombstone is open ended, we must emit a closing range_tombstone_change at position_in_partition::after_all_clustered_rows(). Since all consumers need to do it, implement the logic in the range_tombstone_change_generator itself. It turned out that mutation::consume doesn't do that, hence this series, and 5a09e5234ef4e1ee673bc7fca481defbbb2c0384 in particular, fix the issue. Change 028b2a8cdfdc12721b2be23d175cbc756d2507de exposes the issue by generating a richer set of random range_tombstone that include open-ended range tombstones. Fixes #10316 Test: unit(dev) Signed-off-by: Benny Halevy <bhalevy@scylladb.com> Closes #10317 * github.com:scylladb/scylla: test: random_mutation_generator: make more interesting range tombstones reader: upgrading_consumer: let range_tombstone_change_generator emit last closing change range_tombstone_change_generator: flush: emit end_position when upper limit is after all clustered rows range_tombstone_change_generator: flush: use tri_compare rather than less range_tombstone_change_generator: flush: return early if empty