caroliney14 commented on a change in pull request #2762: URL: https://github.com/apache/hbase/pull/2762#discussion_r543846000
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java ########## @@ -3549,11 +3554,24 @@ public void updateRegionsInTransitionMetrics() { if (oldestRITTime < ritTime) { oldestRITTime = ritTime; } + if (counter < 500) { // Record 500 oldest RITs + oldestRITHashesAndStates.add( + state.getRegion().getRegionNameAsString() + ":" + state.getState().name() Review comment: as for `state`, that is an enum, and we want the state name, which is why I added `.name()`. see [this](https://stackoverflow.com/a/17741770) SO ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org