Merge pull request #11100 from ieQu1/EMQX-10342
fix(management): Don't wait for an empty shard
This commit is contained in:
commit
d646086b41
|
@ -14,6 +14,4 @@
|
||||||
%% limitations under the License.
|
%% limitations under the License.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
-define(MANAGEMENT_SHARD, emqx_management_shard).
|
|
||||||
|
|
||||||
-define(DEFAULT_ROW_LIMIT, 100).
|
-define(DEFAULT_ROW_LIMIT, 100).
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
-include("emqx_mgmt.hrl").
|
-include("emqx_mgmt.hrl").
|
||||||
|
|
||||||
start(_Type, _Args) ->
|
start(_Type, _Args) ->
|
||||||
ok = mria_rlog:wait_for_shards([?MANAGEMENT_SHARD], infinity),
|
|
||||||
case emqx_mgmt_auth:init_bootstrap_file() of
|
case emqx_mgmt_auth:init_bootstrap_file() of
|
||||||
ok ->
|
ok ->
|
||||||
emqx_conf:add_handler([api_key], emqx_mgmt_auth),
|
emqx_conf:add_handler([api_key], emqx_mgmt_auth),
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Fix problem when replicants were unable to connect to the core node due to timeout in `mria_lb:core_nodes()` call.
|
||||||
|
Relevant mria pull request: https://github.com/emqx/mria/pull/143
|
Loading…
Reference in New Issue