Maxwell-Guo commented on code in PR #2375:
URL: https://github.com/apache/cassandra/pull/2375#discussion_r1227472243
##########
src/java/org/apache/cassandra/tools/nodetool/CompactionStats.java:
##########
@@ -48,37 +50,73 @@ public class CompactionStats extends NodeToolCmd
public void execute(NodeProbe probe)
{
PrintStream out = probe.output().out;
+ TableBuilder tableBuilder = new TableBuilder();
+ pendingTasksAndConcurrentCompactorsStats(probe, tableBuilder);
+ compactionsCompletedStats(probe, tableBuilder);
+ compactionThroughputStats(probe, tableBuilder);
+ tableBuilder.printTo(out);
CompactionManagerMBean cm = probe.getCompactionManagerProxy();
+ reportCompactionTable(cm.getCompactions(),
probe.getCompactionThroughput(), humanReadable, out, tableBuilder);
+ }
+
+ private void pendingTasksAndConcurrentCompactorsStats(NodeProbe probe,
TableBuilder tableBuilder)
+ {
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");
Review Comment:
Shouldn't the 4 spaces be removed at the beginning of line 65?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]