bharathv commented on a change in pull request #2289: URL: https://github.com/apache/hbase/pull/2289#discussion_r474275214
########## File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionInfo.java ########## @@ -69,7 +66,15 @@ */ @InterfaceAudience.Public public interface RegionInfo extends Comparable<RegionInfo> { - RegionInfo UNDEFINED = RegionInfoBuilder.newBuilder(TableName.valueOf("__UNDEFINED__")).build(); + /** + * @deprecated since 2.3.2/3.0.0; to be removed in 4.0.0 with no replacement (for internal use). + */ + @Deprecated + @InterfaceAudience.Private + // Not using RegionInfoBuilder intentionally to avoid a static loading deadlock: HBASE-24627 + RegionInfo UNDEFINED = new MutableRegionInfo(0, TableName.valueOf("__UNDEFINED__"), Review comment: Switch back to RegionInfoBuilder? (same below?) ########## File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionInfo.java ########## @@ -69,7 +66,15 @@ */ @InterfaceAudience.Public public interface RegionInfo extends Comparable<RegionInfo> { - RegionInfo UNDEFINED = RegionInfoBuilder.newBuilder(TableName.valueOf("__UNDEFINED__")).build(); + /** + * @deprecated since 2.3.2/3.0.0; to be removed in 4.0.0 with no replacement (for internal use). + */ + @Deprecated + @InterfaceAudience.Private + // Not using RegionInfoBuilder intentionally to avoid a static loading deadlock: HBASE-24627 Review comment: I think this statement can be omitted since this is being handled separately in the parent task. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org