[ https://issues.apache.org/jira/browse/CASSANDRA-17084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475673#comment-17475673 ]
Brandon Williams commented on CASSANDRA-17084: ---------------------------------------------- Thanks for looking. I think the issue is that circle's current working directory when running the tests isn't the cassandra directory (and in retrospect that was probably a bad assumption to begin with) so the directories it's looking for actually do not exist at the base level, hence the NPE. I updated the dtest to create its [own temp directory|https://github.com/driftx/cassandra-dtest/commit/2c28040113e95bb277050e35fe60b3da2fd8edfa] and point to relative (nonexistent) paths within that, and that fails without my patch, and [passes on circle|https://app.circleci.com/pipelines/github/driftx/cassandra?branch=CASSANDRA-17084&filter=all] with it. > 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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org