You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2016/04/08 18:15:25 UTC
[jira] [Commented] (CASSANDRA-11537) Give clear error when certain
nodetool commands are issued before server is ready
[ https://issues.apache.org/jira/browse/CASSANDRA-11537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15232413#comment-15232413 ]
Edward Capriolo commented on CASSANDRA-11537:
---------------------------------------------
WIth the patch above the user now sees this:
{noformat}
[edward@jackintosh apache-cassandra-2.1.13-SNAPSHOT]$ bin/nodetool compact
error: Can not execute command because startup is not complete.
-- StackTrace --
org.apache.cassandra.service.NotReadyException: Can not execute command because startup is not complete.
at org.apache.cassandra.service.StorageService.throwIfNotInitialized(StorageService.java:4447)
at org.apache.cassandra.service.StorageService.forceKeyspaceCompaction(StorageService.java:2449)
{noformat}
> Give clear error when certain nodetool commands are issued before server is ready
> ---------------------------------------------------------------------------------
>
> Key: CASSANDRA-11537
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11537
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Edward Capriolo
> Assignee: Edward Capriolo
> Priority: Minor
>
> As an ops person upgrading and servicing Cassandra servers, I require a more clear message when I issue a nodetool command that the server is not ready for so that I am not confused.
> Technical description:
> If you deploy a new binary, restart, and issue nodetool scrub/compact/updatess etc you get unfriendly assertion. An exception would be easier to understand. Also if a user has turned assertions off it is unclear what might happen.
> {noformat}
> EC1: Throw exception to make it clear server is still in start up process.
> :~# nodetool upgradesstables
> error: null
> -- StackTrace --
> java.lang.AssertionError
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:97)
> at org.apache.cassandra.service.StorageService.getValidKeyspace(StorageService.java:2573)
> at org.apache.cassandra.service.StorageService.getValidColumnFamilies(StorageService.java:2661)
> at org.apache.cassandra.service.StorageService.upgradeSSTables(StorageService.java:2421)
> {noformat}
> EC1:
> Patch against 2.1 (branch)
> https://github.com/apache/cassandra/compare/trunk...edwardcapriolo:exception-on-startup?expand=1
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)