Parcourir la source

Merge pull request #11228 from savonarola/0705-rebalance-fixes

Fix rebalance tests & version
Ilya Averyanov il y a 2 ans
Parent
commit
d2bea433f5

+ 1 - 1
apps/emqx_node_rebalance/src/emqx_node_rebalance.app.src

@@ -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,

+ 2 - 2
apps/emqx_node_rebalance/test/emqx_node_rebalance_api_SUITE.erl

@@ -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(

+ 2 - 0
changes/ee/fix-11198.en.md

@@ -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.