Jon Meredith created CASSANDRA-15688:
----------------------------------------
Summary: Invalid cdc_raw_directory prevents server startup
Key: CASSANDRA-15688
URL: https://issues.apache.org/jira/browse/CASSANDRA-15688
Project: Cassandra
Issue Type: Bug
Components: Feature/Change Data Capture
Reporter: Jon Meredith
Assignee: Jon Meredith
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}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]