You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2019/10/09 09:05:41 UTC
[cassandra] branch trunk updated: Fix errors on repairing empty
keyspace
This is an automated email from the ASF dual-hosted git repository.
mck 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 5bc7a37 Fix errors on repairing empty keyspace
5bc7a37 is described below
commit 5bc7a375a3cac85e79543e7e30d620faeb891955
Author: Stefan Podkowinski <s....@gmail.com>
AuthorDate: Fri May 24 11:12:09 2019 +0200
Fix errors on repairing empty keyspace
patch by Stefan Podkowinski; reviewed by Mick Semb Wever for CASSANDRA-15142
---
src/java/org/apache/cassandra/repair/RepairRunnable.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/java/org/apache/cassandra/repair/RepairRunnable.java b/src/java/org/apache/cassandra/repair/RepairRunnable.java
index f1f12dd..4f2f897 100644
--- a/src/java/org/apache/cassandra/repair/RepairRunnable.java
+++ b/src/java/org/apache/cassandra/repair/RepairRunnable.java
@@ -165,6 +165,14 @@ public class RepairRunnable extends WrappedRunnable implements ProgressEventNoti
return;
}
+ if (Iterables.isEmpty(validColumnFamilies))
+ {
+ String message = String.format("Empty keyspace, skipping repair: %s", keyspace);
+ logger.info(message);
+ fireProgressEvent(new ProgressEvent(ProgressEventType.COMPLETE, 0, 0, message));
+ return;
+ }
+
final long startTime = System.currentTimeMillis();
String message = String.format("Starting repair command #%d (%s), repairing keyspace %s with %s", cmd, parentSession, keyspace,
options);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org