Merge branch 'cassandra-6.0' into trunk

This commit is contained in:
Stefan Miklosovic 2026-04-23 13:46:33 +02:00
commit ccb2785b09
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
1 changed files with 6 additions and 2 deletions

View File

@ -208,10 +208,14 @@ public class CompactionTaskTest
Util.flush(gcGraceCfs);
// SSTable 4 (not fully expired - col3 has longer TTL)
// col3 must have a higher timestamp than SSTable 3's col3 (ts 7) so it is not
// shadowed during compaction. col2's timestamp must stay <= 7 so that SSTable 4's
// minTimestamp remains <= SSTable 3's maxTimestamp, preventing SSTable 3 from being
// detected as fully expired.
for (int k = 0; k < numKeys; k++)
{
QueryProcessor.executeInternal("INSERT INTO ks.tbl2 (k, col3, data) VALUES (?, 1, ?) USING TIMESTAMP 6 AND TTL 3", k, data);
QueryProcessor.executeInternal("INSERT INTO ks.tbl2 (k, col2, data) VALUES (?, 1, ?) USING TIMESTAMP 8 AND TTL 1", k, data);
QueryProcessor.executeInternal("INSERT INTO ks.tbl2 (k, col3, data) VALUES (?, 1, ?) USING TIMESTAMP 8 AND TTL 3", k, data);
QueryProcessor.executeInternal("INSERT INTO ks.tbl2 (k, col2, data) VALUES (?, 1, ?) USING TIMESTAMP 6 AND TTL 1", k, data);
}
Util.flush(gcGraceCfs);