cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [5/9] cassandra git commit: ninja: improve subrange repair error message
Date Wed, 15 Feb 2017 12:54:14 GMT
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/cassandra-3.11
Commit: f02f154e47be13dd481fe7afe18183c615f39c71
Parents: af7b20b
Author: Paulo Motta <pauloricardomg@gmail.com>
Authored: Wed Feb 15 10:15:43 2017 -0200
Committer: Paulo Motta <paulo@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))


Mime
View raw message