From 843c6fcbc17b75b83bb47841bcc0041c136bbe4b Mon Sep 17 00:00:00 2001 From: mrzhao Date: Tue, 29 Nov 2022 00:02:22 +0800 Subject: [PATCH] HBASE-27503 Support replace in GC_OPTS for ZGC (#4892) Signed-off-by: Duo Zhang (cherry picked from commit 7fc4d9938436052b40bd899f463f5743beff09f2) --- bin/hbase-daemon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh index 11c13eb5230..598e49c7413 100755 --- a/bin/hbase-daemon.sh +++ b/bin/hbase-daemon.sh @@ -171,10 +171,10 @@ export HBASE_ZNODE_FILE=$HBASE_PID_DIR/hbase-$HBASE_IDENT_STRING-$command.znode export HBASE_AUTOSTART_FILE=$HBASE_PID_DIR/hbase-$HBASE_IDENT_STRING-$command.autostart if [ -n "$SERVER_GC_OPTS" ]; then - export SERVER_GC_OPTS=${SERVER_GC_OPTS/"-Xloggc:"/"-Xloggc:${HBASE_LOGGC}"} + export SERVER_GC_OPTS=${SERVER_GC_OPTS/""/"${HBASE_LOGGC}"} fi if [ -n "$CLIENT_GC_OPTS" ]; then - export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/"-Xloggc:"/"-Xloggc:${HBASE_LOGGC}"} + export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/""/"${HBASE_LOGGC}"} fi # Set default scheduling priority