Skip to content

Commit

Permalink
Issue 482: Reevaluating number of client connections dynamically in t…
Browse files Browse the repository at this point in the history
…he teardown script (pravega#483)

Signed-off-by: Nishant Gupta <Nishant_Gupta3@dell.com>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
  • Loading branch information
nishant-yt authored and mmoscher committed Oct 12, 2022
1 parent 406b7e7 commit 79f970d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/bin/zookeeperTeardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ LOG4J_CONF=/conf/log4j-quiet.properties

# Wait for client connections to drain. Kubernetes will wait until the confiugred
# "terminationGracePeriodSeconds" before focibly killing the container
CONN_COUNT=`echo cons | nc localhost 2181 | grep -v "^$" |grep -v "/127.0.0.1:" | wc -l`
for (( i = 0; i < 6; i++ )); do
CONN_COUNT=`echo cons | nc localhost 2181 | grep -v "^$" |grep -v "/127.0.0.1:" | wc -l`
if [[ "$CONN_COUNT" -gt 0 ]]; then
echo "$CONN_COUNT non-local connections still connected."
sleep 5
Expand Down

0 comments on commit 79f970d

Please sign in to comment.