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
This commit is contained in:
parent
5fd6ac4fc5
commit
8adcd91420
|
@ -42,8 +42,9 @@ if [ "$DISABLE_ADAPTER" = "0" ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if has mnode ep set or the host is first ep or not for cluster, just start.
|
# 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/mnodeEpSet.json" ] ||
|
if [ -f "$DATA_DIR/dnode/dnode.json" ] ||
|
||||||
|
[ -f "$DATA_DIR/dnode/mnodeEpSet.json" ] ||
|
||||||
[ "$TAOS_FQDN" = "$FIRST_EP_HOST" ]; then
|
[ "$TAOS_FQDN" = "$FIRST_EP_HOST" ]; then
|
||||||
$@
|
$@
|
||||||
# others will first wait the first ep ready.
|
# others will first wait the first ep ready.
|
||||||
|
|
Loading…
Reference in New Issue