From f4f263f91ec0fce27312273f6bdc65dfd55a980f Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Mon, 13 Jun 2022 22:52:51 +0800 Subject: [PATCH] fix: change the default retry_interval of cluster_rpc call to 1min --- apps/emqx_conf/src/emqx_cluster_rpc.erl | 2 +- apps/emqx_conf/src/emqx_conf_schema.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_conf/src/emqx_cluster_rpc.erl b/apps/emqx_conf/src/emqx_cluster_rpc.erl index be0e6232c..720eb4cc5 100644 --- a/apps/emqx_conf/src/emqx_cluster_rpc.erl +++ b/apps/emqx_conf/src/emqx_cluster_rpc.erl @@ -547,7 +547,7 @@ commit_status_trans(Operator, TnxId) -> mnesia:select(?CLUSTER_COMMIT, [{MatchHead, [Guard], [Result]}]). get_retry_ms() -> - emqx_conf:get(["node", "cluster_call", "retry_interval"], 1000). + emqx_conf:get(["node", "cluster_call", "retry_interval"], timer:minutes(1)). maybe_init_tnx_id(_Node, TnxId) when TnxId < 0 -> ok; maybe_init_tnx_id(Node, TnxId) -> diff --git a/apps/emqx_conf/src/emqx_conf_schema.erl b/apps/emqx_conf/src/emqx_conf_schema.erl index 79d0a5d91..23069284c 100644 --- a/apps/emqx_conf/src/emqx_conf_schema.erl +++ b/apps/emqx_conf/src/emqx_conf_schema.erl @@ -585,7 +585,7 @@ fields("cluster_call") -> emqx_schema:duration(), #{ desc => ?DESC(cluster_call_retry_interval), - default => "1s" + default => "1m" } )}, {"max_history",