Updated Branches: refs/heads/trunk e2506f1d0 -> bcd80487a
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/trunk Commit: f82021b1b977d8eb7f9ca794cf05c9c38fddd9a2 Parents: 1c86fa3 Author: Brandon Williams <brandonwilli...@apache.org> Authored: Wed May 1 20:09:21 2013 -0500 Committer: Brandon Williams <brandonwilli...@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));