未验证 提交 8adcd914 编写于 作者: K Kaiyu Zhu 提交者: GitHub

fix: tdengine swarm cluster(3 mnodes) startup error (#20966)

* fix: tdengine swarm cluster(3 mnodes) startup error

add check if dnode has been created when TDengine docker image starts

Resolves #19837

* refactor: change the check (#6f53e8ed76) location
上级 5fd6ac4f
......@@ -42,8 +42,9 @@ if [ "$DISABLE_ADAPTER" = "0" ]; then
done
fi
# if has mnode ep set or the host is first ep or not for cluster, just start.
if [ -f "$DATA_DIR/dnode/mnodeEpSet.json" ] ||
# if dnode has been created or has mnode ep set or the host is first ep or not for cluster, just start.
if [ -f "$DATA_DIR/dnode/dnode.json" ] ||
[ -f "$DATA_DIR/dnode/mnodeEpSet.json" ] ||
[ "$TAOS_FQDN" = "$FIRST_EP_HOST" ]; then
$@
# others will first wait the first ep ready.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册