Debian init respects CASSANDRA_HEAPDUMP_DIR

Patch by Brandon Williams; reviewed by adelapena for CASSANDRA-13843
This commit is contained in:
Brandon Williams 2021-09-21 09:22:25 -05:00
parent be649d5d54
commit ea3cca04eb
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
3.0.26:
* Debian init respects CASSANDRA_HEAPDUMP_DIR (CASSANDRA-13843)
* Catch UnsatisfiedLinkError in WindowsTimer (CASSANDRA-16085)
* Avoid removing batch when it's not created during view replication (CASSANDRA-16175)
* Make the addition of regular column to COMPACT tables throw an InvalidRequestException (CASSANDRA-14564)

6
debian/init vendored
View File

@ -73,7 +73,11 @@ do_start()
ulimit -n "$FD_LIMIT"
cassandra_home=`getent passwd cassandra | awk -F ':' '{ print $6; }'`
heap_dump_f="$cassandra_home/java_`date +%s`.hprof"
if [ "x$CASSANDRA_HEAPDUMP_DIR" != "x" ]; then
heap_dump_f="$CASSANDRA_HEAPDUMP_DIR/java_`date +%s`.hprof"
else
heap_dump_f="$cassandra_home/java_`date +%s`.hprof"
fi
error_log_f="$cassandra_home/hs_err_`date +%s`.log"
[ -e `dirname "$PIDFILE"` ] || \