Skip to content

Commit 438527b

Browse files
fix: zk cleanup doesn't work (#2191)
Signed-off-by: mango <[email protected]>
1 parent 19936e4 commit 438527b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set +e
2626
pkill python3
2727
set -e
2828

29-
rm -rf /tmp/*
29+
rm -rf /tmp/openmldb_offline_storage/*
3030
rm -rf /work/openmldb/logs*
3131
rm -rf /work/openmldb/db*
3232
sleep 2
@@ -36,7 +36,7 @@ if [[ "$MODE" = "standalone" ]]; then
3636
cd /work/openmldb && ./bin/stop-standalone.sh && ./bin/start-standalone.sh
3737
sleep 1
3838
else
39-
cd /work/zookeeper-3.4.14 && ./bin/zkServer.sh restart
39+
cd /work/zookeeper-3.4.14 && ./bin/zkServer.sh stop && rm -rf /tmp/zookeeper && ./bin/zkServer.sh start
4040
sleep 1
4141
cd /work/openmldb && ./bin/stop-all.sh && ./bin/start-all.sh
4242
fi

0 commit comments

Comments
 (0)