Skip to content

Commit

Permalink
optimize the broker electing switch's branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
GenerousMan committed Mar 16, 2023
1 parent ec7acfb commit 77893ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,8 @@ public Pair<ElectMasterResponseHeader, Set<Long>> brokerElect(String controllerA
throw new MQBrokerException(response.getCode(), "Controller leader was changed");
}
case CONTROLLER_BROKER_NEED_TO_BE_REGISTERED:
throw new MQBrokerException(response.getCode(), response.getRemark());
case CONTROLLER_ELECT_MASTER_FAILED:
throw new MQBrokerException(response.getCode(), response.getRemark());
case CONTROLLER_MASTER_STILL_EXIST:
case SUCCESS:
final ElectMasterResponseHeader responseHeader = (ElectMasterResponseHeader) response.decodeCommandCustomHeader(ElectMasterResponseHeader.class);
Expand Down

0 comments on commit 77893ef

Please sign in to comment.