@@ -1664,7 +1664,6 @@ public static class RegionInTransitionStat {
16641664 private long oldestRITTime = 0 ;
16651665 private int totalRITsTwiceThreshold = 0 ;
16661666 private int totalRITs = 0 ;
1667- private final List <Long > ritDuration = new ArrayList <>();
16681667
16691668 public RegionInTransitionStat (final Configuration conf ) {
16701669 this .ritThreshold =
@@ -1687,10 +1686,6 @@ public long getOldestRITTime() {
16871686 return oldestRITTime ;
16881687 }
16891688
1690- public List <Long > getRitDuration () {
1691- return ritDuration ;
1692- }
1693-
16941689 public int getTotalRITsOverThreshold () {
16951690 Map <String , RegionState > m = this .ritsOverThreshold ;
16961691 return m != null ? m .size () : 0 ;
@@ -1749,7 +1744,6 @@ private void update(final Collection<RegionState> regions, final long currentTim
17491744 continue ;
17501745 }
17511746 final long ritTime = currentTime - ritStartedMs ;
1752- ritDuration .add (ritTime );
17531747 if (ritTime > ritThreshold ) {
17541748 if (ritsOverThreshold == null ) {
17551749 ritsOverThreshold = new HashMap <String , RegionState >();
@@ -1768,7 +1762,6 @@ private void updateRegionsInTransitionMetrics(final RegionInTransitionStat ritSt
17681762 metrics .updateRITOldestAge (ritStat .getOldestRITTime ());
17691763 metrics .updateRITCount (ritStat .getTotalRITs ());
17701764 metrics .updateRITCountOverThreshold (ritStat .getTotalRITsOverThreshold ());
1771- ritStat .getRitDuration ().forEach (metrics ::updateRitDuration );
17721765 }
17731766
17741767 private void updateDeadServerRegionMetrics (int deadRegions , int unknownRegions ) {
0 commit comments