[ https://issues.apache.org/jira/browse/CASSANDRA-16199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Lerer updated CASSANDRA-16199: --------------------------------------- Reviewers: Benjamin Lerer, Benjamin Lerer (was: Benjamin Lerer) Benjamin Lerer, Benjamin Lerer Status: Review In Progress (was: Patch Available) > cassandra.logdir undefined when CASSANDRA_LOG_DIR > ------------------------------------------------- > > Key: CASSANDRA-16199 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16199 > Project: Cassandra > Issue Type: Bug > Components: Local/Config > Reporter: Cyril Scetbon > Assignee: Brian Houser > Priority: Normal > Fix For: 3.11.x, 4.0.x > > Time Spent: 10m > Remaining Estimate: 0h > > When ${cassandra.logdir} is used in logback.xml nodetool doesn’t use the env > variable CASSANDRA_LOG_DIR or the default value. and complains > {noformat} > 03:07:27,387 |-ERROR in > ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] - Failed to create > parent directories for [/cassandra.logdir_IS_UNDEFINED/debug.log]03:07:27,387 > |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] - Failed > to create parent directories for > [/cassandra.logdir_IS_UNDEFINED/debug.log]03:07:27,388 |-ERROR in > ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] - > openFile(cassandra.logdir_IS_UNDEFINED/debug.log,true) call failed. > java.io.FileNotFoundException: cassandra.logdir_IS_UNDEFINED/debug.log (No > such file or directory) at java.io.FileNotFoundException: > cassandra.logdir_IS_UNDEFINED/debug.log (No such file or directory) > ...{noformat} > It’s different for cassandra for instance > [https://github.com/apache/cassandra/blob/324267b3c0676ad31bd4f2fac0e2e673a9257a37/bin/cassandra#L186]. > I feel like it should be added to > [https://github.com/apache/cassandra/blob/06209037ea56b5a2a49615a99f1542d6ea1b2947/bin/nodetool], > or that it should call cassandra-env.sh > > Seen on 3.11 and 4.0-beta1 -- 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