From c4042f49274b1614bd868884fba89664d50cccbc Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 22 Jun 2020 20:20:42 -0700 Subject: [PATCH] HBASE-23055 Alter hbase:meta (#1956) Addendum to fix illegal removal of unused constant w/o a deprecation cycle. --- .../main/java/org/apache/hadoop/hbase/HConstants.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index 622f403f009..e97774760d5 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -27,6 +27,7 @@ import java.util.List; import java.util.UUID; import java.util.regex.Pattern; +import org.apache.commons.lang3.ArrayUtils; import org.apache.hadoop.hbase.util.Bytes; import org.apache.yetus.audience.InterfaceAudience; @@ -1235,6 +1236,16 @@ public final class HConstants { HBCK_SIDELINEDIR_NAME, HBASE_TEMP_DIRECTORY, MIGRATION_NAME })); + /** + * Directories that are not HBase user table directories. + * @deprecated Since hbase-2.3.0; no replacement as not used any more (internally at least) + */ + @Deprecated + public static final List HBASE_NON_USER_TABLE_DIRS = + Collections.unmodifiableList(Arrays.asList((String[])ArrayUtils.addAll( + new String[] { TableName.META_TABLE_NAME.getNameAsString() }, + HBASE_NON_TABLE_DIRS.toArray()))); + /** Health script related settings. */ public static final String HEALTH_SCRIPT_LOC = "hbase.node.health.script.location"; public static final String HEALTH_SCRIPT_TIMEOUT = "hbase.node.health.script.timeout";