You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Kirk True (JIRA)" <ji...@apache.org> on 2018/10/16 23:19:00 UTC

[jira] [Commented] (CASSANDRA-14142) logs directory for gc.log doesn't exist on first start

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

Kirk True commented on CASSANDRA-14142:
---------------------------------------

There's a patch for this on GitHub. If it needs to be a proper patch, as per the contributor guidelines, I can do that on behalf of Alex, just let me know.


Thanks.

> logs directory for gc.log doesn't exist on first start
> ------------------------------------------------------
>
>                 Key: CASSANDRA-14142
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14142
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Configuration
>         Environment: Unix & Windows environments, when starting freshly downloaded tarball
>            Reporter: Alex Ott
>            Priority: Trivial
>              Labels: lhf
>
> This was originally reported at https://stackoverflow.com/questions/47976248/gc-log-file-error-when-running-cassandra.
> This is very minor problem related to timing of 'logs' directory creation - when Cassandra starts first time, this directory doesn't exist, and created when Cassandra starts to write system.log & debug.log files. But this directory is referenced in the -Xloggc command line parameter of JVM, causing following warning:
> {{Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file bin/../logs/gc.log due to No such file or directory}}
> The fix is to check existence of this directory in the cassandra-env, and create it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org