mirror of https://github.com/apache/cassandra
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:
parent
693b60ca41
commit
9fecb6674a
|
|
@ -745,7 +745,6 @@ public class ReadCommandTest
|
||||||
@Test
|
@Test
|
||||||
public void purgeGCableTombstonesBeforeCalculatingDigest() throws Exception
|
public void purgeGCableTombstonesBeforeCalculatingDigest() throws Exception
|
||||||
{
|
{
|
||||||
KeyspaceMetadata keyspaceMetadata = Schema.instance.getKeyspaceMetadata(KEYSPACE);
|
|
||||||
ColumnFamilyStore cfs = Keyspace.open(KEYSPACE).getColumnFamilyStore(CF8);
|
ColumnFamilyStore cfs = Keyspace.open(KEYSPACE).getColumnFamilyStore(CF8);
|
||||||
cfs.truncateBlocking();
|
cfs.truncateBlocking();
|
||||||
cfs.disableAutoCompaction();
|
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
|
//Tombstones are now purgable, so won't be in the read results and produce different digests
|
||||||
for (DecoratedKey key : keys)
|
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();
|
cmd.trackRepairedStatus();
|
||||||
Partition partition = Util.getOnlyPartitionUnfiltered(cmd);
|
Partition partition = Util.getOnlyPartitionUnfiltered(cmd);
|
||||||
assertFalse(partition.isEmpty());
|
assertFalse(partition.isEmpty());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue