HBASE-23055 Alter hbase:meta (#1956)

Addendum to fix illegal removal of unused constant w/o
a deprecation cycle.
This commit is contained in:
Michael Stack 2020-06-22 20:20:42 -07:00 committed by stack
parent d46adc7cc8
commit 500a1df379
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import java.util.Collections;
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;
@ -1199,6 +1200,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<String> 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";