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

improve StartupException related codes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Local/Other
    • None
    • Semantic
    • Low Hanging Fruit
    • All
    • None

    Description

      1. We should use the enum: ERR_WRONG_MACHINE_STATE and ERR_WRONG_DISK_STATE to replace the magic number: 1 and 3

      exitOrFail(1, e.getMessage(), e.getCause());
      exitOrFail(3, "Exception encountered during startup", e);

       

      2. Delete the useless field: ERR_OUTDATED_SCHEMA

      Attachments

        Activity

          People

            subkanthi Kanthi Subramanian
            maoling Ling Mao
            Kanthi Subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: