Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AE5BF447 for ; Thu, 2 May 2013 14:23:41 +0000 (UTC) Received: (qmail 96690 invoked by uid 500); 2 May 2013 14:23:41 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 96634 invoked by uid 500); 2 May 2013 14:23:41 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 96622 invoked by uid 99); 2 May 2013 14:23:40 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 14:23:40 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B575F885F3A; Thu, 2 May 2013 14:23:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dbrosius@apache.org To: commits@cassandra.apache.org Date: Thu, 02 May 2013 14:23:40 -0000 Message-Id: <327a8d72ebc749c2bd79566dbb495023@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/5] git commit: Give users a clue how they called it. 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 Authored: Wed May 1 20:09:21 2013 -0500 Committer: Brandon Williams 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 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));