You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Jira)" <ji...@apache.org> on 2021/10/29 18:53:00 UTC
[jira] [Commented] (CASSANDRA-17084) startup fails if directories
do not exist
[ https://issues.apache.org/jira/browse/CASSANDRA-17084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436139#comment-17436139 ]
Brandon Williams commented on CASSANDRA-17084:
----------------------------------------------
Previously we could get past DD.daemonInitialization and then in setup() when initializing the commitlog it ends up calling DD.createAllDirectories, but this is now too late. I don't think calling createAllDirectories sooner now is the solution though, since we use daemonInitialization extensively in tests, and probably don't want the side effect of it creating directories.
> startup fails if directories do not exist
> -----------------------------------------
>
> Key: CASSANDRA-17084
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17084
> Project: Cassandra
> Issue Type: Bug
> Components: Local/Startup and Shutdown
> Reporter: Brandon Williams
> Priority: Normal
> Fix For: 4.1
>
>
> Prior to CASSANDRA-16926, having commitlog and data dirs defined that did not exist would be created on startup, but now we throw:
> {noformat}
> Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Unable check disk space in 'bin/../data/commitlog'. Perhaps the Cassandra user does not have the necessary permissions
> org.apache.cassandra.exceptions.ConfigurationException: Unable check disk space in 'bin/../data/commitlog'. Perhaps the Cassandra user does not have the necessary permissions
> at org.apache.cassandra.config.DatabaseDescriptor.lambda$tryGetSpace$3(DatabaseDescriptor.java:1188)
> at org.apache.cassandra.io.util.PathUtils.tryOnFileStore(PathUtils.java:639)
> at org.apache.cassandra.io.util.PathUtils.tryGetSpace(PathUtils.java:665)
> at org.apache.cassandra.config.DatabaseDescriptor.tryGetSpace(DatabaseDescriptor.java:1188)
> at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:553)
> at org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:350)
> at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:178)
> at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:162)
> at org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:800)
> at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:736)
> at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:871)
> {noformat}
> This was at least convenient for development, but also may be relied upon by some tooling/automation.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org