[
https://issues.apache.org/jira/browse/CASSANDRA-15688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jon Meredith updated CASSANDRA-15688:
-------------------------------------
Test and Documentation Plan: Added tests for the factored out
functionality. DatabaseDescriptor.applySimpeConfig is too monolithic to easily
add a test to.
Status: Patch Available (was: Open)
> 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
> Priority: Normal
> Labels: pull-request-available
> Fix For: 4.0-rc
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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]