diff --git a/apps/emqx_conf/src/emqx_cluster_rpc.erl b/apps/emqx_conf/src/emqx_cluster_rpc.erl index 003851420..072b92347 100644 --- a/apps/emqx_conf/src/emqx_cluster_rpc.erl +++ b/apps/emqx_conf/src/emqx_cluster_rpc.erl @@ -60,6 +60,11 @@ -export_type([tnx_id/0, succeed_num/0]). +-boot_mnesia({mnesia, [boot]}). + +-include_lib("emqx/include/logger.hrl"). +-include("emqx_conf.hrl"). + -ifdef(TEST). -compile(export_all). -compile(nowarn_export_all). @@ -67,13 +72,11 @@ start_link() -> start_link(-1). +start_link(Node, Name, RetryMs) -> + start_link(-1, Node, Name, RetryMs). + -endif. --boot_mnesia({mnesia, [boot]}). - --include_lib("emqx/include/logger.hrl"). --include("emqx_conf.hrl"). - -define(INITIATE(MFA), {initiate, MFA}). -define(CATCH_UP, catch_up). -define(TIMEOUT, timer:minutes(1)). diff --git a/changes/ce/fix-11214.en.md b/changes/ce/fix-11214.en.md new file mode 100644 index 000000000..35a33970a --- /dev/null +++ b/changes/ce/fix-11214.en.md @@ -0,0 +1 @@ +Fix a bug where node configuration may fail to synchronize correctly when joining the cluster.