Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-11949

GC log directory should be created in startup scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Low

    Description

      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.

      Attachments

        Activity

          People

            mahdix Mahdi Mohammadinasab
            jkni Joel Knighton
            Mahdi Mohammadinasab
            Joshua McKenzie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: