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

Invalid cdc_raw_directory prevents server startup

    XMLWordPrintableJSON

Details

    • Availability - Unavailable
    • Normal
    • Low Hanging Fruit
    • Adhoc Test
    • All
    • None
    • 4.0
    • Hide

      Added tests for the factored out functionality. DatabaseDescriptor.applySimpeConfig is too monolithic to easily add a test to.

      Show
      Added tests for the factored out functionality. DatabaseDescriptor.applySimpeConfig is too monolithic to easily add a test to.

    Description

      If cdc_raw_directory is set to an invalid directory it prevents startup of the server even when cdc_enabled is set false.

      The directory can either be set directly by the cdc_raw_directory setting in configuration YAML or indirectly via the cassandra.storage_dir system property, which is how I encountered it.

      Easy to reproduce by setting cdc_raw_directory to notadir/notasubdir

      Additionally while investigating, discovered that DatabaseDescriptor.guessFileStore can cause a NullPointerException if it runs out of parent elements
      before it can get a FileStore. It should provide a more useful ConfigurationException providing details on the problematic path.
      guessFileStore is used for checks on commitlog_directory, cdc_raw_directory and data_file_directories.

      Attachments

        Issue Links

          Activity

            People

              jmeredithco Jon Meredith
              jmeredithco Jon Meredith
              Jon Meredith
              Dinesh Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m