docs: add change logs
This commit is contained in:
parent
6a1085a842
commit
a638cc1d74
2
bin/emqx
2
bin/emqx
|
@ -550,7 +550,7 @@ else
|
||||||
die "Node $EMQX_NODE__NAME is not running?"
|
die "Node $EMQX_NODE__NAME is not running?"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
## We have no choiece but to read the bootstrap config (with environment overrides available in the current shell)
|
## We have no choice but to read the bootstrap config (with environment overrides available in the current shell)
|
||||||
[ -f "$EMQX_ETC_DIR"/emqx.conf ] || die "emqx.conf is not found in $EMQX_ETC_DIR" 1
|
[ -f "$EMQX_ETC_DIR"/emqx.conf ] || die "emqx.conf is not found in $EMQX_ETC_DIR" 1
|
||||||
maybe_use_portable_dynlibs
|
maybe_use_portable_dynlibs
|
||||||
EMQX_BOOT_CONFIGS="$(call_hocon -s "$SCHEMA_MOD" -c "$EMQX_ETC_DIR"/emqx.conf multi_get "${CONF_KEYS[@]}")"
|
EMQX_BOOT_CONFIGS="$(call_hocon -s "$SCHEMA_MOD" -c "$EMQX_ETC_DIR"/emqx.conf multi_get "${CONF_KEYS[@]}")"
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
To prevent errors caused by an incorrect EMQX node cookie provided from an environment variable,
|
||||||
|
we have implemented a fail-fast mechanism.
|
||||||
|
Previously, when an incorrect cookie was provided, the command would still attempt to ping the node,
|
||||||
|
leading to the error message 'Node xxx not responding to pings'.
|
||||||
|
With the new implementation, if a mismatched cookie is detected,
|
||||||
|
a message will be logged to indicate that the cookie is incorrect,
|
||||||
|
and the command will terminate with an error code of 1 without trying to ping the node.
|
|
@ -0,0 +1,4 @@
|
||||||
|
在 cookie 给错时,快速失败。
|
||||||
|
在此修复前,即使 cookie 配置错误,emqx 命令仍然会尝试去 ping EMQX 节点,
|
||||||
|
并得到一个 "Node xxx not responding to pings" 的错误。
|
||||||
|
修复后,如果发现 cookie 不一致,立即打印不一致的错误信息并退出。
|
Loading…
Reference in New Issue