Skip to content

Commit

Permalink
refresh Configuration add learner list (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyann authored Apr 19, 2022
1 parent 4a9cd42 commit e804c9d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ public Status refreshConfiguration(final CliClientService cliClientService, fina
newPeer.parse(peerIdStr);
newConf.addPeer(newPeer);
}
for (final String learnerIdStr : resp.getLearnersList()) {
final PeerId newLearner = new PeerId();
newLearner.parse(learnerIdStr);
newConf.addLearner(newLearner);
}
if (!conf.equals(newConf)) {
LOG.info("Configuration of replication group {} changed from {} to {}", groupId, conf, newConf);
}
Expand Down

0 comments on commit e804c9d

Please sign in to comment.