Viktor Jevdokimov created CASSANDRA-5007:
--------------------------------------------

             Summary: Nodetool exit with exception when Cassandra is starting
                 Key: CASSANDRA-5007
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5007
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.0.12
         Environment: Any
            Reporter: Viktor Jevdokimov
            Priority: Trivial


When Cassandra service is starting (loading sstables), nodetool command:

{code}
nodetool -h localhost info
{code}

throws or return an exception:

{code}
Exception in thread "main" java.lang.AssertionError: Could not find myself in 
the endpoint list, something is very wrong!
        at org.apache.cassandra.tools.NodeProbe.getEndpoint(NodeProbe.java:557)
        at 
org.apache.cassandra.tools.NodeProbe.getDataCenter(NodeProbe.java:564)
        at org.apache.cassandra.tools.NodeCmd.printInfo(NodeCmd.java:314)
        at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:652)
{code}

We use script to start Cassandra, which first checks Cassandra process is 
started and then checks when "nodetool -h localhost info" will return "Thrift: 
true" and "Gossip: true" to be sure that service is fully started and serving 
thrift requests.

Would be nice for nodetool to return some other info, not an exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to