cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject [02/10] cassandra git commit: Fix GC logging on first start
Date Tue, 28 Jun 2016 17:49:28 GMT
Fix GC logging on first start

Patch by mmohammadi; reviewed by jmckenzie for CASSANDRA-11949


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3a61c106
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3a61c106
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3a61c106

Branch: refs/heads/cassandra-3.0
Commit: 3a61c106595745694a73970c780c3713776f4362
Parents: 6555a87
Author: Mahdi Mohammadi <mahdix@gmail.com>
Authored: Tue Jun 28 13:46:38 2016 -0400
Committer: Josh McKenzie <jmckenzie@apache.org>
Committed: Tue Jun 28 13:46:38 2016 -0400

----------------------------------------------------------------------
 conf/cassandra-env.ps1 | 1 +
 conf/cassandra-env.sh  | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3a61c106/conf/cassandra-env.ps1
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.ps1 b/conf/cassandra-env.ps1
index 321a9ca..60d15bb 100644
--- a/conf/cassandra-env.ps1
+++ b/conf/cassandra-env.ps1
@@ -425,6 +425,7 @@ Function SetCassandraEnvironment
     $env:JVM_OPTS="$env:JVM_OPTS -XX:+PrintPromotionFailure"
     # $env:JVM_OPTS="$env:JVM_OPTS -XX:PrintFLSStatistics=1"
 
+    New-Item -Force -ItemType directory -Path $env:CASSANDRA_HOME/logs/
     $env:JVM_OPTS="$env:JVM_OPTS -Xloggc:""$env:CASSANDRA_HOME/logs/gc.log"""
     $env:JVM_OPTS="$env:JVM_OPTS -XX:+UseGCLogFileRotation"
     $env:JVM_OPTS="$env:JVM_OPTS -XX:NumberOfGCLogFiles=10"

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3a61c106/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index b519b76..5d2330c 100644
--- a/conf/cassandra-env.sh
+++ b/conf/cassandra-env.sh
@@ -241,6 +241,7 @@ JVM_OPTS="$JVM_OPTS -XX:+PrintGCApplicationStoppedTime"
 JVM_OPTS="$JVM_OPTS -XX:+PrintPromotionFailure"
 #JVM_OPTS="$JVM_OPTS -XX:PrintFLSStatistics=1"
 
+mkdir -p ${CASSANDRA_HOME}/logs/
 JVM_OPTS="$JVM_OPTS -Xloggc:${CASSANDRA_HOME}/logs/gc.log"
 JVM_OPTS="$JVM_OPTS -XX:+UseGCLogFileRotation"
 JVM_OPTS="$JVM_OPTS -XX:NumberOfGCLogFiles=10"


Mime
View raw message