From eb51c02f52df8225ea62defa3356e00d628f61bf Mon Sep 17 00:00:00 2001 From: Ray Mattingly Date: Sun, 3 Dec 2023 10:06:10 -0500 Subject: [PATCH] update RestrictedApi annotation --- .../hbase/master/procedure/ReopenTableRegionsProcedure.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java index d50fa49506dd..1ba2313214e8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java @@ -137,8 +137,8 @@ public long getBatchesProcessed() { return batchesProcessed; } - @RestrictedApi(explanation = "Should only be called in tests", link = "", - allowedOnPath = ".*/src/test/.*") + @RestrictedApi(explanation = "Should only be called internally or in tests", link = "", + allowedOnPath = "(.*(/src/test/.*|ReopenTableRegionsProcedure).java)") protected int progressBatchSize() { int previousBatchSize = reopenBatchSize; reopenBatchSize = Math.min(reopenBatchSizeMax, 2 * reopenBatchSize);