Skip to content

Commit 502dc85

Browse files
caroliney14virajjasani
authored andcommitted
HBASE-25329 Dump ritsOverThreshold in logs (#2761)
Signed-off-by: Bharath Vissapragada <[email protected]> Signed-off-by: Viraj Jasani <[email protected]>
1 parent e4fd55d commit 502dc85

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignmentManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,13 @@ protected void update(final AssignmentManager am) {
13981398
this.statTimestamp = EnvironmentEdgeManager.currentTime();
13991399
update(regionStates.getRegionsStateInTransition(), statTimestamp);
14001400
update(regionStates.getRegionFailedOpen(), statTimestamp);
1401+
1402+
if (LOG.isDebugEnabled() && ritsOverThreshold != null && !ritsOverThreshold.isEmpty()) {
1403+
LOG.debug("RITs over threshold: {}",
1404+
ritsOverThreshold.entrySet().stream()
1405+
.map(e -> e.getKey() + ":" + e.getValue().getState().name())
1406+
.collect(Collectors.joining("\n")));
1407+
}
14011408
}
14021409

14031410
private void update(final Collection<RegionState> regions, final long currentTime) {

0 commit comments

Comments
 (0)