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

When data dir is not present, we fail as FileNotFound causes org.apache.cassandra.config.DatabaseDescriptor#tryGetSpace to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 4.1-alpha1, 4.1
    • Legacy/Core
    • None
    • Correctness - Recoverable Corruption / Loss
    • Normal
    • Low Hanging Fruit
    • User Report
    • All
    • None

    Description

      When you download trunk and do ./bin/cassandra -f, this will fail on a fresh clone as “data” directory does not exist.  The failure happens in org.apache.cassandra.config.DatabaseDescriptor#tryGetSpace which throws a new error
       

      throw new ConfigurationException("Unable check disk space in '" + dir + "'. Perhaps the Cassandra user does not have the necessary permissions")
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aesparzachavez Analucia Esparza-Chavez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: