File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ DATA_DIR=/data
18
18
MYID_FILE=$DATA_DIR /myid
19
19
LOG4J_CONF=/conf/log4j-quiet.properties
20
20
21
- # Wait for client connections to drain. Kubernetes will wait until the confiugred
21
+ # Wait for client connections to drain. Kubernetes will wait until the configured
22
22
# "terminationGracePeriodSeconds" before focibly killing the container
23
23
for (( i = 0 ; i < 6 ; i++ )) ; do
24
- CONN_COUNT=` echo cons | socat stdio tcp:localhost:$CLIENT_PORT | grep -v " ^$" | grep -v " /127.0.0.1:" | wc -l`
24
+ CONN_COUNT=` echo cons | socat stdio tcp:localhost:$CLIENT_PORT | grep -v " ^$" | grep -v -e " /127.0.0.1:" -e " This ZooKeeper instance is not currently serving requests " | wc -l`
25
25
if [[ " $CONN_COUNT " -gt 0 ]]; then
26
26
echo " $CONN_COUNT non-local connections still connected."
27
27
sleep 5
You can’t perform that action at this time.
0 commit comments