[ 
https://issues.apache.org/jira/browse/CASSANDRA-17084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475224#comment-17475224
 ] 

Berenguer Blasi commented on CASSANDRA-17084:
---------------------------------------------

Hi [~brandon.williams],

While looking into the failures I've been playing with {{commitlog_directory}} 
and I can't get it to fail locally. Paths being relative or not it always 
creates the folder for me. There is a note in the javadoc that all these 
methods are implementation dependent. Hence I can only think there is some code 
there behaving differently depending on where it gets executed. I can only 
think to add a few debug statements and run it on circle to narrow the problem 
down. I am afraid I don't have a better suggestion here... :thinking:...

> 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
>            Assignee: 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.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to