mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.11' into trunk
This commit is contained in:
commit
729146a074
|
|
@ -2244,7 +2244,7 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!-- Publish artifacts to Maven repositories -->
|
<!-- Installs artifacts to local Maven repository -->
|
||||||
<target name="mvn-install"
|
<target name="mvn-install"
|
||||||
depends="maven-declare-dependencies,jar,sources-jar,javadoc-jar"
|
depends="maven-declare-dependencies,jar,sources-jar,javadoc-jar"
|
||||||
description="Installs the artifacts in the Maven Local Repository">
|
description="Installs the artifacts in the Maven Local Repository">
|
||||||
|
|
@ -2265,8 +2265,9 @@
|
||||||
classifier="javadoc"/>
|
classifier="javadoc"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- Publish artifacts to remote Maven repository -->
|
||||||
<target name="publish"
|
<target name="publish"
|
||||||
depends="mvn-install"
|
depends="mvn-install,artifacts"
|
||||||
description="Publishes the artifacts to the Maven repository">
|
description="Publishes the artifacts to the Maven repository">
|
||||||
|
|
||||||
<!-- the parent -->
|
<!-- the parent -->
|
||||||
|
|
|
||||||
|
|
@ -2,33 +2,21 @@
|
||||||
+++ b/bin/cassandra
|
+++ b/bin/cassandra
|
||||||
@@ -109,7 +109,7 @@
|
@@ -109,7 +109,7 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CASSANDRA_LOG_DIR" ]; then
|
if [ -z "$CASSANDRA_LOG_DIR" ]; then
|
||||||
- CASSANDRA_LOG_DIR=$CASSANDRA_HOME/logs
|
- CASSANDRA_LOG_DIR=$CASSANDRA_HOME/logs
|
||||||
+ CASSANDRA_LOG_DIR=/var/log/cassandra
|
+ CASSANDRA_LOG_DIR=/var/log/cassandra
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Special-case path variables.
|
# Special-case path variables.
|
||||||
--- a/conf/cassandra-env.sh
|
--- a/conf/cassandra-env.sh
|
||||||
+++ b/conf/cassandra-env.sh
|
+++ b/conf/cassandra-env.sh
|
||||||
@@ -93,16 +93,16 @@
|
@@ -88,7 +88,7 @@ calculate_heap_sizes()
|
||||||
echo "$JVM_OPTS" | grep -q "^-[X]log:gc"
|
|
||||||
if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
|
# Sets the path where logback and GC logs are written.
|
||||||
# only add -Xlog:gc if it's not mentioned in jvm-server.options file
|
if [ "x$CASSANDRA_LOG_DIR" = "x" ] ; then
|
||||||
- mkdir -p ${CASSANDRA_HOME}/logs
|
- CASSANDRA_LOG_DIR="$CASSANDRA_HOME/logs"
|
||||||
- JVM_OPTS="$JVM_OPTS -Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=${CASSANDRA_HOME}/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
|
+ CASSANDRA_LOG_DIR=/var/log/cassandra
|
||||||
+ mkdir -p /var/log/cassandra
|
|
||||||
+ JVM_OPTS="$JVM_OPTS -Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=/var/log/cassandra/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Java 8
|
|
||||||
echo "$JVM_OPTS" | grep -q "^-[X]loggc"
|
|
||||||
if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
|
|
||||||
# only add -Xlog:gc if it's not mentioned in jvm-server.options file
|
|
||||||
- mkdir -p ${CASSANDRA_HOME}/logs
|
|
||||||
- JVM_OPTS="$JVM_OPTS -Xloggc:${CASSANDRA_HOME}/logs/gc.log"
|
|
||||||
+ mkdir -p /var/log/cassandra
|
|
||||||
+ JVM_OPTS="$JVM_OPTS -Xloggc:/var/log/cassandra/gc.log"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#GC log path has to be defined here because it needs to access CASSANDRA_HOME
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue