Ensure tombstones can be purged in ReadCommandTest

Patch by Sam Tunnicliffe; reviewed by Brandon Williams and
David Capwell for CASSANDRA-15558
This commit is contained in:
Sam Tunnicliffe 2020-02-10 11:12:19 +00:00
parent 693b60ca41
commit 9fecb6674a
1 changed files with 1 additions and 2 deletions

View File

@ -745,7 +745,6 @@ public class ReadCommandTest
@Test
public void purgeGCableTombstonesBeforeCalculatingDigest() throws Exception
{
KeyspaceMetadata keyspaceMetadata = Schema.instance.getKeyspaceMetadata(KEYSPACE);
ColumnFamilyStore cfs = Keyspace.open(KEYSPACE).getColumnFamilyStore(CF8);
cfs.truncateBlocking();
cfs.disableAutoCompaction();
@ -798,7 +797,7 @@ public class ReadCommandTest
//Tombstones are now purgable, so won't be in the read results and produce different digests
for (DecoratedKey key : keys)
{
ReadCommand cmd = Util.cmd(cfs, key).withNowInSeconds(nowInSec + 1).build();
ReadCommand cmd = Util.cmd(cfs, key).withNowInSeconds(nowInSec + 60).build();
cmd.trackRepairedStatus();
Partition partition = Util.getOnlyPartitionUnfiltered(cmd);
assertFalse(partition.isEmpty());