Skip to content

Commit dfefff7

Browse files
authored
HBASE-25329 Dump ritsOverThreshold in logs (#2761)
Signed-off-by: Bharath Vissapragada <[email protected]> Signed-off-by: Viraj Jasani <[email protected]>
1 parent 13dd54a commit dfefff7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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
@@ -1425,6 +1425,13 @@ protected void update(final AssignmentManager am) {
14251425
this.statTimestamp = EnvironmentEdgeManager.currentTime();
14261426
update(regionStates.getRegionsStateInTransition(), statTimestamp);
14271427
update(regionStates.getRegionFailedOpen(), statTimestamp);
1428+
1429+
if (LOG.isDebugEnabled() && ritsOverThreshold != null && !ritsOverThreshold.isEmpty()) {
1430+
LOG.debug("RITs over threshold: {}",
1431+
ritsOverThreshold.entrySet().stream()
1432+
.map(e -> e.getKey() + ":" + e.getValue().getState().name())
1433+
.collect(Collectors.joining("\n")));
1434+
}
14281435
}
14291436

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

0 commit comments

Comments
 (0)