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

Print usage when command is not specified in nodetool instead of connection failure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.7
    • Tool/nodetool
    • None

    Description

      nodetool command tries to establish connection to the cassandra node before ensuring that the command is valid. Therefore, when no command is specified it will print (in the case when C* is not running)

      $ bin/nodetool
      Failed to connect to '127.0.0.1:7199': Connection refused
      

      That means we need to have a running instance of C* to check the available commands. But this is a syntax error and usage can be displayed (which is the result even if a C* is running) even without a C* instance. Probably, it would be better to make sure that the command sytnax is valid and print usage if not. By doing this, we can easily check the available commands.

      Additionally, same should apply for the help command. Since, help will not be connecting to the C* instance, we should not have a dependency on a running C*.

      Attachments

        1. trunk-CASSANDRA-5734.patch
          3 kB
          Manoj Mainali
        2. trunk-CASSANDRA-5734-v1.patch
          3 kB
          Manoj Mainali

        Activity

          People

            mkmainali Manoj Mainali
            mkmainali Manoj Mainali
            Manoj Mainali
            David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: