cassandra-commits mailing list archives

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


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/de212e59
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/de212e59
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/de212e59

Branch: refs/heads/cassandra-1.2
Commit: de212e59a60cb173e44555cf2bd292779e27a4c0
Parents: b6730aa
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:09:21 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/de212e59/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 15364d3..7e29a7d 100644
--- a/src/java/org/apache/cassandra/dht/RandomPartitioner.java
+++ b/src/java/org/apache/cassandra/dht/RandomPartitioner.java
@@ -160,7 +160,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