Merge pull request #11228 from savonarola/0705-rebalance-fixes
Fix rebalance tests & version
This commit is contained in:
commit
d2bea433f5
|
@ -1,6 +1,6 @@
|
|||
{application, emqx_node_rebalance, [
|
||||
{description, "EMQX Node Rebalance"},
|
||||
{vsn, "5.0.3"},
|
||||
{vsn, "5.0.4"},
|
||||
{registered, [
|
||||
emqx_node_rebalance_sup,
|
||||
emqx_node_rebalance,
|
||||
|
|
|
@ -192,7 +192,7 @@ t_start_stop_evacuation(Config) ->
|
|||
[{DonorNode, _}, {RecipientNode, _}] = ?config(cluster_nodes, Config),
|
||||
|
||||
StartOpts = maps:merge(
|
||||
emqx_node_rebalance_api:rebalance_evacuation_example(),
|
||||
maps:get(evacuation, emqx_node_rebalance_api:rebalance_evacuation_example()),
|
||||
#{migrate_to => [atom_to_binary(RecipientNode)]}
|
||||
),
|
||||
|
||||
|
@ -295,7 +295,7 @@ t_start_stop_rebalance(Config) ->
|
|||
|
||||
StartOpts = maps:without(
|
||||
[nodes],
|
||||
emqx_node_rebalance_api:rebalance_example()
|
||||
maps:get(rebalance, emqx_node_rebalance_api:rebalance_example())
|
||||
),
|
||||
|
||||
?assertMatch(
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix global rebalance status evaluation on replicant nodes.
|
||||
Previously, `/api/v5/load_rebalance/global_status` API method could return incomplete results if handled by a replicant node.
|
Loading…
Reference in New Issue