[ https://issues.apache.org/jira/browse/CASSANDRA-15688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17077585#comment-17077585 ]
Jon Meredith commented on CASSANDRA-15688: ------------------------------------------ Rebased since original submission and rerun due to lots of unrelated test issues. Updated CircleCI [Java8|https://circleci.com/workflow-run/4648ff9c-fa8d-4506-8052-80a6d68037f4] [Java11|https://circleci.com/workflow-run/b8002437-eb82-4738-8b01-0f0351e28949] > 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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org