Uh oh!
There was an error while loading. Please reload this page.
HBASE-26730 Extend hbase shell 'status' command to support an option 'tasks' - #4094
Conversation
7b187aa to
cfd925eCompareApache-HBase
commented
Feb 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 4, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 4, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 4, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 4, 2022
💔 -1 overall
This message was automatically generated. |
Unit test failures are not related. Looks like it is about time to do a unit test cleanup on branch-2. |
| serverMetricsMap = new HashMap<>(); | ||
| } | ||
| final Map<ServerName, ServerMetrics> map = serverMetricsMap; | ||
| serverManager.getOnlineServers().entrySet() |
There was a problem hiding this comment.
nit: could we factor out the common code into a helper rather than duplicating?
There was a problem hiding this comment.
I suppose it is possible to collapse this into a single code block, would that be better? E.g.
boolean doTasks = false;
....
case TASKS: doTasks = true;
// fall through
case LIVE_SERVERS: {
...
// do stuff
if (doTasks) {
// do tasks stuff too, like the master monitoredtask collection
...
}
There was a problem hiding this comment.
I did take up your suggestion to D.R.Y this and was able to remove some lines, it looks good @gjacoby126
Uh oh!
There was an error while loading. Please reload this page.
cfd925e to
86ee7b4Compareapurtell
commented
Feb 10, 2022
Rebased and addresses @gjacoby126 's feedback |
Apache-HBase
commented
Feb 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Feb 10, 2022
🎊 +1 overall
This message was automatically generated. |
apurtell
commented
Feb 16, 2022
As with the master PR will take care of the checkstyle issues before merge. |
…'tasks' Expose monitored tasks state in ClusterStatus API via new option in ServerLoad. Add shell support for interrogating monitored tasks state in ServerLoad.
…sks in 'tasks' view
86ee7b4 to
716dad9Compare…'tasks' (#4094) Signed-off-by: Geoffrey Jacoby <gjacoby@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
Expose monitored tasks state in ClusterStatus API via new option in ServerLoad.
Add shell support for interrogating monitored tasks state in ServerLoad.
Here's a prototype running on a branch-2 fork:

: