Skip to content

Commit a35a8ad

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 d3b1689 commit a35a8ad

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
@@ -1418,6 +1418,13 @@ protected void update(final AssignmentManager am) {
14181418
this.statTimestamp = EnvironmentEdgeManager.currentTime();
14191419
update(regionStates.getRegionsStateInTransition(), statTimestamp);
14201420
update(regionStates.getRegionFailedOpen(), statTimestamp);
1421+
1422+
if (LOG.isDebugEnabled() && ritsOverThreshold != null && !ritsOverThreshold.isEmpty()) {
1423+
LOG.debug("RITs over threshold: {}",
1424+
ritsOverThreshold.entrySet().stream()
1425+
.map(e -> e.getKey() + ":" + e.getValue().getState().name())
1426+
.collect(Collectors.joining("\n")));
1427+
}
14211428
}
14221429

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

0 commit comments

Comments
 (0)