From 9fecb6674adc0b9cbbfb4b284cc4ab371edeaa09 Mon Sep 17 00:00:00 2001 From: Sam Tunnicliffe Date: Mon, 10 Feb 2020 11:12:19 +0000 Subject: [PATCH] Ensure tombstones can be purged in ReadCommandTest Patch by Sam Tunnicliffe; reviewed by Brandon Williams and David Capwell for CASSANDRA-15558 --- test/unit/org/apache/cassandra/db/ReadCommandTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/org/apache/cassandra/db/ReadCommandTest.java b/test/unit/org/apache/cassandra/db/ReadCommandTest.java index 4419c706c1..87097753b1 100644 --- a/test/unit/org/apache/cassandra/db/ReadCommandTest.java +++ b/test/unit/org/apache/cassandra/db/ReadCommandTest.java @@ -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());