Repository: cassandra Updated Branches: refs/heads/cassandra-3.0 174a0aa7d -> 9fe790d75
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-3.0 Commit: 4a94f75b0177cab18539317c3f58db2014091a9b Parents: 05ccdc6 Author: Ariel Weisberg <ariel.weisb...@datastax.com> Authored: Mon Nov 16 11:05:35 2015 -0500 Committer: Aleksey Yeschenko <alek...@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(); }