-
Couldn't load subscription status.
- Fork 3.4k
HBASE-25460 : Expose drainingServers as cluster metric #2995
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
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
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.
Reformat nits, else +1
| @Override | ||
| public String getDrainingRegionServers() { | ||
| ServerManager serverManager = this.master.getServerManager(); | ||
| if (serverManager == null) { | ||
| return ""; | ||
| } | ||
| return StringUtils.join(serverManager.getDrainingServersList() , ";"); | ||
| } | ||
|
|
||
| @Override | ||
| public int getNumDrainingRegionServers() { | ||
| ServerManager serverManager = this.master.getServerManager(); | ||
| if (serverManager == null) { | ||
| return 0; | ||
| } | ||
| return serverManager.getDrainingServersList().size(); | ||
| } | ||
|
|
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.
nit: good to reformat this code once for alignment
| metricsHelper.assertGauge("numRegionServers", 1 + (tablesOnMaster ? 1 : 0), masterSource); | ||
| metricsHelper.assertGauge("averageLoad", 1, masterSource); | ||
| metricsHelper.assertGauge("numDeadRegionServers", 0, masterSource); | ||
| metricsHelper.assertGauge( "numDrainingRegionServers", 0, masterSource); |
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.
nit: reformat?
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
…pache#2995) Signed-off-by: Viraj Jasani <[email protected]> (cherry picked from commit e5f32be) Change-Id: I332296e4892b4f36d063ae8a09f5a8b5d67951cc
No description provided.