cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/2] git commit: Give users a clue how they called it.
Date Thu, 02 May 2013 01:12:13 GMT
Updated Branches:
  refs/heads/cassandra-1.2 1c86fa3c1 -> dedeb0be8


Give users a clue how they called it.


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

Branch: refs/heads/cassandra-1.2
Commit: f82021b1b977d8eb7f9ca794cf05c9c38fddd9a2
Parents: 1c86fa3
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed May 1 20:09:21 2013 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed May 1 20:11:55 2013 -0500

----------------------------------------------------------------------
 .../apache/cassandra/dht/RandomPartitioner.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f82021b1/src/java/org/apache/cassandra/dht/RandomPartitioner.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/dht/RandomPartitioner.java b/src/java/org/apache/cassandra/dht/RandomPartitioner.java
index 26b399e..f99bcc0 100644
--- a/src/java/org/apache/cassandra/dht/RandomPartitioner.java
+++ b/src/java/org/apache/cassandra/dht/RandomPartitioner.java
@@ -161,7 +161,7 @@ public class RandomPartitioner extends AbstractPartitioner<BigIntegerToken>
         Iterator i = sortedTokens.iterator();
 
         // 0-case
-        if (!i.hasNext()) { throw new RuntimeException("No nodes present in the cluster.
How did you call this?"); }
+        if (!i.hasNext()) { throw new RuntimeException("No nodes present in the cluster.
Has this node finished starting up?"); }
         // 1-case
         if (sortedTokens.size() == 1) {
             ownerships.put((Token)i.next(), new Float(1.0));


Mime
View raw message