[
https://issues.apache.org/jira/browse/HBASE-29859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiao Liu updated HBASE-29859:
-----------------------------
Affects Version/s: 2.5.13
2.6.4
> Initialization log for DataTieringManager is incorrect
> ------------------------------------------------------
>
> Key: HBASE-29859
> URL: https://issues.apache.org/jira/browse/HBASE-29859
> Project: HBase
> Issue Type: Bug
> Components: regionserver
> Affects Versions: 3.0.0-beta-1, 2.6.4, 2.5.13
> Reporter: Xiao Liu
> Assignee: Xiao Liu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5, 2.5.14
>
>
> In the \{{DataTieringManager.instantiate}} method, if \{{DataTieringFeature}}
> is not enabled, we still see the log message \{{DataTieringManager is already
> instantiated.}} when the regionserver starts, which is quite confusing. The
> code is as follows:
> {code:java}
> public static synchronized boolean instantiate(Configuration conf,
> Map<String, HRegion> onlineRegions) {
> if (isDataTieringFeatureEnabled(conf) && instance == null) {
> instance = new DataTieringManager(onlineRegions);
> LOG.info("DataTieringManager instantiated successfully.");
> return true;
> } else {
> LOG.warn("DataTieringManager is already instantiated.");
> }
> return false;
> } {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)