cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject cassandra git commit: Fix RecoveryManagerTruncateTest failing in test-compression
Date Mon, 23 Nov 2015 17:11:32 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 05ccdc641 -> 4a94f75b0


Fix RecoveryManagerTruncateTest failing in test-compression

when unsafely resetting the commit log always sync first so records prior to the rest are
usable

patch by Ariel Weisberg; reviewed by Aleksey Yeschenko for
CASSANDRA-9355


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4a94f75b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4a94f75b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4a94f75b

Branch: refs/heads/cassandra-2.1
Commit: 4a94f75b0177cab18539317c3f58db2014091a9b
Parents: 05ccdc6
Author: Ariel Weisberg <ariel.weisberg@datastax.com>
Authored: Mon Nov 16 11:05:35 2015 -0500
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Mon Nov 23 17:05:33 2015 +0000

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/commitlog/CommitLog.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4a94f75b/src/java/org/apache/cassandra/db/commitlog/CommitLog.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLog.java b/src/java/org/apache/cassandra/db/commitlog/CommitLog.java
index 40b90ff..4e20a39 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLog.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLog.java
@@ -370,6 +370,7 @@ public class CommitLog implements CommitLogMBean
      */
     public void resetUnsafe()
     {
+        sync(true);
         allocator.resetUnsafe();
     }
 


Mime
View raw message