World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#7513] fix: server shutdown logic should correctly check for forceKill (#7559)
Gagan B Mishra8af70945ae2f
diff --git a/bin/gravitino-iceberg-rest-server.sh.template b/bin/gravitino-iceberg-rest-server.sh.templateindex 61f0080123..7278bae448 100755--- a/bin/gravitino-iceberg-rest-server.sh.template+++ b/bin/gravitino-iceberg-rest-server.sh.template@@ -81,7 +81,7 @@ function wait_for_iceberg_rest_server_to_die() {breakfi- $(kill ${pid} > /dev/null 2> /dev/null)+ kill ${pid} > /dev/null 2> /dev/nullif kill -0 ${pid} > /dev/null 2>&1; thensleep 3else@@ -91,8 +91,8 @@ function wait_for_iceberg_rest_server_to_die() {currentTime=$(date "+%s")done- if [[ forceKill -ne 0 ]]; then- $(kill -9 ${pid} > /dev/null 2> /dev/null)+ if [[ $forceKill -ne 0 ]]; then+ kill -9 ${pid} > /dev/null 2> /dev/nullfi}diff --git a/bin/gravitino.sh.template b/bin/gravitino.sh.templateindex a19d73d873..e9e7fb637e 100755--- a/bin/gravitino.sh.template+++ b/bin/gravitino.sh.template@@ -81,7 +81,7 @@ function wait_for_gravitino_server_to_die() {breakfi- $(kill ${pid} > /dev/null 2> /dev/null)+ kill ${pid} > /dev/null 2> /dev/nullif kill -0 ${pid} > /dev/null 2>&1; thensleep 3else@@ -91,8 +91,8 @@ function wait_for_gravitino_server_to_die() {currentTime=$(date "+%s")done- if [[ forceKill -ne 0 ]]; then- $(kill -9 ${pid} > /dev/null 2> /dev/null)+ if [[ $forceKill -ne 0 ]]; then+ kill -9 ${pid} > /dev/null 2> /dev/nullfi}