You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by pa...@apache.org on 2017/02/15 12:54:15 UTC
[6/9] cassandra git commit: ninja: improve subrange repair error
message
ninja: improve subrange repair error message
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/f02f154e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/f02f154e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/f02f154e
Branch: refs/heads/trunk
Commit: f02f154e47be13dd481fe7afe18183c615f39c71
Parents: af7b20b
Author: Paulo Motta <pa...@gmail.com>
Authored: Wed Feb 15 10:15:43 2017 -0200
Committer: Paulo Motta <pa...@apache.org>
Committed: Wed Feb 15 10:29:09 2017 -0200
----------------------------------------------------------------------
src/java/org/apache/cassandra/service/ActiveRepairService.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/f02f154e/src/java/org/apache/cassandra/service/ActiveRepairService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/ActiveRepairService.java b/src/java/org/apache/cassandra/service/ActiveRepairService.java
index 97c5c0a..11d4617 100644
--- a/src/java/org/apache/cassandra/service/ActiveRepairService.java
+++ b/src/java/org/apache/cassandra/service/ActiveRepairService.java
@@ -220,7 +220,10 @@ public class ActiveRepairService implements IEndpointStateChangeSubscriber, IFai
}
else if (range.intersects(toRepair))
{
- throw new IllegalArgumentException("Requested range intersects a local range but is not fully contained in one; this would lead to imprecise repair");
+ throw new IllegalArgumentException(String.format("Requested range %s intersects a local range (%s) " +
+ "but is not fully contained in one; this would lead to " +
+ "imprecise repair. keyspace: %s", toRepair.toString(),
+ range.toString(), keyspaceName));
}
}
if (rangeSuperSet == null || !replicaSets.containsKey(rangeSuperSet))