You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2018/07/27 20:09:00 UTC
[jira] [Created] (HIVE-20258) Should Syncronize getInstance in
ReplChangeManager
BELUGA BEHR created HIVE-20258:
----------------------------------
Summary: Should Syncronize getInstance in ReplChangeManager
Key: HIVE-20258
URL: https://issues.apache.org/jira/browse/HIVE-20258
Project: Hive
Issue Type: Bug
Components: Metastore
Affects Versions: 3.0.0, 4.0.0
Reporter: BELUGA BEHR
{code:java}
public static ReplChangeManager getInstance(Configuration conf) throws MetaException {
if (instance == null) {
instance = new ReplChangeManager(conf);
}
return instance;
}
{code}
This method needs to be synchronized or two different callers will see a 'null' value and each create their own manager.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)