Skip to content

Conversation

@samueldlightfoot
Copy link
Contributor

Test: CompactionDeleteRowRangeTest::test2DeleteRangeWithOverlapingBoundAndSameTimestampCompaction

The two deletes use the same CQL timestamp, so compaction should merge their overlapping range tombstones into a single open/close pair (no boundary markers). However, DeletionTime also includes local_delete_time (wall-clock seconds), which may differ between deletes if a second boundary is crossed during the flush. Differing local_delete_time causes the merger to treat them as distinct deletions, producing boundary markers instead. Using executeInternalWithNowInSec with a fixed nowInSec ensures both deletes get identical DeletionTime values.

patch by Sam Lightfoot; reviewed by for CASSANDRA-21163

The two deletes use the same CQL timestamp, so compaction should merge
their overlapping range tombstones into a single open/close pair (no
boundary markers). However, DeletionTime also includes local_delete_time
(wall-clock seconds), which may differ between deletes if a second
boundary is crossed during the flush. Differing local_delete_time causes
the merger to treat them as distinct deletions, producing boundary
markers instead. Using executeInternalWithNowInSec with a fixed nowInSec
ensures both deletes get identical DeletionTime values.
@samueldlightfoot samueldlightfoot changed the title Fix flaky test2DeleteRangeWithOverlapingBoundAndSameTimestampCompaction CASSANDRA-21163 - Fix flaky test2DeleteRangeWithOverlapingBoundAndSameTimestampCompaction Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant