From c2120aafc94e34ee33420d0afb7f3c1641fbe514 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Tue, 2 Jun 2020 19:45:07 +0300 Subject: [PATCH] fix(zookeeper): Temp ZK fix should run in detached mode (#525) Fixes #519. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1893bf7..7bf71b6 100755 --- a/install.sh +++ b/install.sh @@ -176,7 +176,7 @@ ZOOKEEPER_SNAPSHOT_FILE_COUNT=$($dcr zookeeper bash -c 'ls 2>/dev/null -Ubad1 -- # This is a workaround for a ZK upgrade bug: https://issues.apache.org/jira/browse/ZOOKEEPER-3056 if [ "$ZOOKEEPER_LOG_FILE_COUNT" -gt "0" ] && [ "$ZOOKEEPER_SNAPSHOT_FILE_COUNT" -eq "0" ]; then $dcr -v $(pwd)/zookeeper:/temp zookeeper bash -c 'cp /temp/snapshot.0 /var/lib/zookeeper/data/version-2/snapshot.0' - $dc run -e ZOOKEEPER_SNAPSHOT_TRUST_EMPTY=true zookeeper + $dc run -d -e ZOOKEEPER_SNAPSHOT_TRUST_EMPTY=true zookeeper fi