This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit e1b3c303feab07d1328fc68af13e8244fe566264 Author: Lari Hotari <lhot...@users.noreply.github.com> AuthorDate: Fri Jun 7 20:00:00 2024 +0300 [fix][cli] Fix healthcheck script pulsar-zookeeper-ruok.sh (#22873) (cherry picked from commit 80d1cf9e44f14b0753054e4c59419fbaf247481c) --- docker/pulsar/scripts/pulsar-zookeeper-ruok.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/pulsar/scripts/pulsar-zookeeper-ruok.sh b/docker/pulsar/scripts/pulsar-zookeeper-ruok.sh index 7a0228c2386..045258696ff 100755 --- a/docker/pulsar/scripts/pulsar-zookeeper-ruok.sh +++ b/docker/pulsar/scripts/pulsar-zookeeper-ruok.sh @@ -20,7 +20,7 @@ # Check ZK server status -status=$(echo ruok | nc -q 1 localhost 2181) +status=$({ echo ruok; sleep 1; } | nc 127.0.0.1 2181) if [ "$status" == "imok" ]; then exit 0 else