cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [2/6] git commit: Fix repeated message when there are no hints to compact
Date Mon, 03 Nov 2014 21:48:03 GMT
Fix repeated message when there are no hints to compact

Patch by carlyeks, reviwed by brandonwilliams for CASSANDRA-8247


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

Branch: refs/heads/cassandra-2.1
Commit: e88bcfeb15266756c7543beb97aad6c1be74dabe
Parents: 83d4762
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Mon Nov 3 15:47:02 2014 -0600
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Mon Nov 3 15:47:02 2014 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/HintedHandOffManager.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e88bcfeb/src/java/org/apache/cassandra/db/HintedHandOffManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/HintedHandOffManager.java b/src/java/org/apache/cassandra/db/HintedHandOffManager.java
index a6b6d4c..c2e4d0d 100644
--- a/src/java/org/apache/cassandra/db/HintedHandOffManager.java
+++ b/src/java/org/apache/cassandra/db/HintedHandOffManager.java
@@ -257,6 +257,9 @@ public class HintedHandOffManager implements HintedHandOffManagerMBean
         for (SSTable sstable : hintStore.getDataTracker().getUncompactingSSTables())
             descriptors.add(sstable.descriptor);
 
+        if (descriptors.isEmpty())
+            return;
+
         try
         {
             CompactionManager.instance.submitUserDefined(hintStore, descriptors, (int) (System.currentTimeMillis()
/ 1000)).get();


Mime
View raw message