New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZOOKEEPER-3203] Tracking the number of non voting followers in ZK #722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall okay
I left a comment
public String nonVotingFollowerInfo() { | ||
StringBuilder sb = new StringBuilder(); | ||
for (LearnerHandler handler : leader.getNonVotingFollowers()) { | ||
sb.append(handler.toString()).append("\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to have a specific toStringForJMX method.
In the future people will change the toString method without thinking that they are changing the output of a public endpoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a fair point, but I'd like to keep the same behavior in this patch as what we're doing now for the followInfo in this LeaderBean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think we can live with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f093c2b
to
11456ff
Compare
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Merged to master branch. Thanks @lvfangmin ! |
Author: Fangmin Lyu <fangmin@apache.org> Reviewers: andor@apache.org Closes apache#722 from lvfangmin/ZOOKEEPER-3203
No description provided.