Skip to content

Commit

Permalink
Merge pull request redpanda-data#9870 from ZeDRoman/issue-4371
Browse files Browse the repository at this point in the history
c/members_backend: check domain while decr removed replicas
  • Loading branch information
ZeDRoman authored Apr 6, 2023
2 parents ea6ecf1 + 4bdccb2 commit 60bd6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/cluster/members_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ double calculate_unevenness_error(
* from the node after successful reallocation
*/
for (const auto& r : update.partition_reallocations) {
if (r.allocation_units) {
if (get_allocation_domain(r.ntp) == domain && r.allocation_units) {
for (const auto& to_remove : r.replicas_to_remove) {
auto it = node_replicas.find(to_remove);
if (it != node_replicas.end()) {
Expand Down

0 comments on commit 60bd6df

Please sign in to comment.