[
https://issues.apache.org/jira/browse/CASSANDRA-11949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395952#comment-15395952
]
Joshua McKenzie commented on CASSANDRA-11949:
---------------------------------------------
[~mahdix]: After chewing on this issue a bit more, I'm not sure I'm comfortable
with us adding directory creation into our launch scripts. This would put us at
three separate locations responsible for directory creation: launch scripts,
within Java / Daemon itself, and implicitly via the package. I think I'd prefer
that this directory exist in the original archived form of Cassandra's
distribution rather than us creating it programmatically.
[~mshuler]: The data and logs are currently excluded as part of .gitignore (for
obvious reasons). What would it take to get a logs (and data for that matter)
folder created with the C* package when we roll it up as part of our release?
> GC log directory should be created in startup scripts
> -----------------------------------------------------
>
> Key: CASSANDRA-11949
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11949
> Project: Cassandra
> Issue Type: Bug
> Reporter: Joel Knighton
> Assignee: Mahdi Mohammadi
> Priority: Minor
> Fix For: 2.2.8, 3.0.9, 3.9
>
>
> In [CASSANDRA-10140], we enabled GC logging by default, since the overhead
> was low and asking people providing diagnostics to restart can often make it
> more difficult to diagnose problems.
> The default GC log path is set to {{$CASSANDRA_HOME/logs/gc.log}} in
> {{cassandra-env.sh}}, a directory that is not present in a fresh
> clone/install. Even if logback creates this directory later in startup, it is
> not present when the JVM initiates GC logging, so GC logging will silently
> fail for this first Cassandra run
> I haven't tested this in Windows but suspect the same problem may occur.
> Since lots of tooling around Cassandra won't create this directory, we should
> instead consider attempting to create it in our startup scripts.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)