[
https://issues.apache.org/jira/browse/CASSANDRA-5007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis resolved CASSANDRA-5007.
---------------------------------------
Resolution: Won't Fix
I changed it to a RuntimeException in 1.2 so it will throw even with assertions
disabled, but fundamentally asking nodetool to deal with you handing it a
partially-started Cassandra instance isn't reasonable.
> 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