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 ED37A18FBA for ; Fri, 31 Jul 2015 17:21:04 +0000 (UTC) Received: (qmail 22397 invoked by uid 500); 31 Jul 2015 17:21:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 22364 invoked by uid 500); 31 Jul 2015 17:21:04 -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 22350 invoked by uid 99); 31 Jul 2015 17:21:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jul 2015 17:21:04 +0000 Date: Fri, 31 Jul 2015 17:21:04 +0000 (UTC) From: "Yuki Morishita (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9031) nodetool info -T throws ArrayOutOfBounds when the node has not joined the cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yuki Morishita updated CASSANDRA-9031: -------------------------------------- Assignee: Yuki Morishita Reviewer: (was: Yuki Morishita) > nodetool info -T throws ArrayOutOfBounds when the node has not joined the cluster > --------------------------------------------------------------------------------- > > Key: CASSANDRA-9031 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9031 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Ron Kuris > Assignee: Yuki Morishita > Fix For: 2.1.x > > Attachments: patch.txt > > > To reproduce, bring up a node that does not join the cluster, either using -Dcassandra.write_survey=true or -Dcassandra.join_ring=false, then run 'nodetool info -T'. You'll get the following stack trace: > {code}ID : e384209f-f7a9-4cff-8fd5-03adfaa0d846 > Gossip active : true > Thrift active : true > Native Transport active: true > Load : 76.69 KB > Generation No : 1427229938 > Uptime (seconds) : 728 > Heap Memory (MB) : 109.93 / 826.00 > Off Heap Memory (MB) : 0.01 > Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) > at java.util.ArrayList.get(ArrayList.java:411) > at org.apache.cassandra.tools.NodeProbe.getEndpoint(NodeProbe.java:676) > at org.apache.cassandra.tools.NodeProbe.getDataCenter(NodeProbe.java:694) > at org.apache.cassandra.tools.NodeCmd.printInfo(NodeCmd.java:666) > at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1277){code} > After applying the attached patch, the new error is: > {code}ID : a7d76a2a-82d2-4faa-94e1-a30df6663ebb > Gossip active : true > Thrift active : false > Native Transport active: false > Load : 89.36 KB > Generation No : 1427231804 > Uptime (seconds) : 12 > Heap Memory (MB) : 135.49 / 826.00 > Off Heap Memory (MB) : 0.01 > Exception in thread "main" java.lang.RuntimeException: This node does not have any tokens. Perhaps it is not part of the ring? > at org.apache.cassandra.tools.NodeProbe.getEndpoint(NodeProbe.java:678) > at org.apache.cassandra.tools.NodeProbe.getDataCenter(NodeProbe.java:698) > at org.apache.cassandra.tools.NodeCmd.printInfo(NodeCmd.java:676) > at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1313){code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)