Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10047

nodetool aborts when attempting to cleanup a keyspace with no ranges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • None
    • None
    • None
    • 2.1.8

    • Low

    Description

      When running nodetool cleanup in a DC that has no ranges for a keyspace, nodetool will abort with the following message when attempting to cleanup that keyspace:

      Aborted cleaning up atleast one column family in keyspace ks, check server logs for more information.
      error: nodetool failed, check server logs
      -- StackTrace --
      java.lang.RuntimeException: nodetool failed, check server logs
      	at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:290)
      	at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202)
      

      The error messages in the logs are :

      CompactionManager.java:370 - Cleanup cannot run before a node has joined the ring
      

      This behavior prevents subsequent keyspaces from getting cleaned up. The error message is also misleading as it suggests that the only reason a node may not have ranges for a keyspace is because it has yet to join the ring.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              devdazed Russell Bradberry
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: