From 9f57ba510ebe6275a82457a74d97f04829715a8f Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Fri, 7 Jul 2023 08:10:33 +0800 Subject: [PATCH] chore: add 11214 changelog --- apps/emqx_conf/src/emqx_cluster_rpc.erl | 13 ++++++++----- changes/ce/fix-11214.en.md | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 changes/ce/fix-11214.en.md 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.