Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Availability - Unavailable
-
Normal
-
Low Hanging Fruit
-
Adhoc Test
-
All
-
None
-
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
- supercedes
-
CASSANDRA-14570 Improper default value of cdc_total_space_in_mb
- Resolved
- links to