-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
CASSANDRA-20104 sorting of nodetool status output - further refactorings and improvements #3744
base: trunk
Are you sure you want to change the base?
Conversation
// More tokens than nodes (aka vnodes)? | ||
if (dcs.size() < tokensToEndpoints.size()) | ||
if (hostIDMap.size() < nodesOfTokens) |
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.
I strongly believe this is a bug. The code as it was does not make any sense.
"Default ordering is ascending for 'ip', 'host', 'id', 'token', 'rack' and descending for 'load', 'owns', 'state'. " + | ||
"Sorting by token is possible only when cluster does not use vnodes. When using vnodes, default " + | ||
"sorting is by id otherwise by token.", | ||
allowedValues = {"ip", "host", "load", "owns", "id", "rack", "state", "none"}) |
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.
If we are also including token do we not have to include token in the allowed values?
patch by Manish Pillai; reviwed by Stefan Miklosovic, Bernardo Botella for CASSANDRA-20104 Co-authored-by: Stefan Miklosovic <[email protected]>
3f835e1
to
4507859
Compare
@Override | ||
public void execute(NodeProbe probe) | ||
{ | ||
PrintStream out = probe.output().out; | ||
PrintStream errOut = probe.output().err; |
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.
We were wrongly sending errors to out instead of err output across this class. This is now fixed.
4507859
to
474dc72
Compare
Thanks for sending a pull request! Here are some tips if you're new here:
Commit messages should follow the following format:
The Cassandra Jira