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-18305 4.0 - Enhance nodetool compactionstats #2375
Conversation
src/java/org/apache/cassandra/tools/nodetool/CompactionStats.java
Outdated
Show resolved
Hide resolved
for (Entry<String, Integer> tableEntry : ksEntry.getValue().entrySet()) | ||
numTotalPendingTask += tableEntry.getValue(); | ||
{ | ||
toPrint.append("- " + ksName + '.' + tableEntry.getKey() + ": " + tableEntry.getValue()); |
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.
should we use String format?
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.
Looks like this was missed?
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.
This is not latest. Tablebuilder is used in latest changes. I pushed those changes few days back. I am not aure why they are not visible. Let me check.
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 see, the other commit is on top of this one, okay, that works.
for (Entry<String, Integer> tableEntry : ksEntry.getValue().entrySet()) | ||
numTotalPendingTask += tableEntry.getValue(); | ||
{ | ||
toPrint.append("- " + ksName + '.' + tableEntry.getKey() + ": " + tableEntry.getValue()); |
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.
Looks like this was missed?
Map<String, Map<String, Integer>> pendingTaskNumberByTable = | ||
(Map<String, Map<String, Integer>>) probe.getCompactionMetric("PendingTasksByTableName"); | ||
int numTotalPendingTask = 0; | ||
(Map<String, Map<String, Integer>>) probe.getCompactionMetric("PendingTasksByTableName"); |
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.
Shouldn't the 4 spaces be removed at the beginning of line 65?
The Cassandra Jira