busbey commented on a change in pull request #1527: HBASE-24143 [JDK11] Switch 
default garbage collector from CMS
URL: https://github.com/apache/hbase/pull/1527#discussion_r410405091
 
 

 ##########
 File path: bin/hbase-config.sh
 ##########
 @@ -168,3 +168,27 @@ if [ -z "$JAVA_HOME" ]; then
 EOF
     exit 1
 fi
+
+function read_java_version() {
+  properties="$("${JAVA_HOME}/bin/java" -XshowSettings:properties -version 
2>&1)"
+  #shellcheck disable=SC2016 # shellcheck cannot see through "${AWK}"
 
 Review comment:
   I don't know off hand how portable `-E` is. In the example I only used it to 
avoid escaping the parentheses, so you can drop it and change the expression to 
`'s/.* = \([^ ]*\) */\1/'` (I forgot to strip trialing spaces in the original 
example)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to