You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sa...@apache.org on 2020/02/11 09:22:15 UTC

[cassandra] branch trunk updated: Ensure tombstones can be purged in ReadCommandTest

This is an automated email from the ASF dual-hosted git repository.

samt pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9fecb66  Ensure tombstones can be purged in ReadCommandTest
9fecb66 is described below

commit 9fecb6674adc0b9cbbfb4b284cc4ab371edeaa09
Author: Sam Tunnicliffe <sa...@beobal.com>
AuthorDate: Mon Feb 10 11:12:19 2020 +0000

    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 4419c70..8709775 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());


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org