Repository: hive Updated Branches: refs/heads/branch-2 8b3ce4688 -> 941f037c2
HIVE-19050 : addendum Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/941f037c Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/941f037c Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/941f037c Branch: refs/heads/branch-2 Commit: 941f037c2514f6d8e7881e78c0a4f3ab89a72a50 Parents: 8b3ce46 Author: Vihang Karajgaonkar <vih...@cloudera.com> Authored: Fri Apr 6 19:48:19 2018 -0700 Committer: Vihang Karajgaonkar <vih...@cloudera.com> Committed: Fri Apr 6 19:48:19 2018 -0700 ---------------------------------------------------------------------- .../apache/hive/hcatalog/listener/DbNotificationListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/941f037c/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java ---------------------------------------------------------------------- diff --git a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java index c4e1675..54e5d45 100644 --- a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java +++ b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java @@ -106,7 +106,7 @@ public class DbNotificationListener extends MetaStoreEventListener { private MessageFactory msgFactory; //cleaner is a static object, use static synchronized to make sure its thread-safe - private static synchronized void init(Configuration conf) throws MetaException { + private static synchronized void init(HiveConf conf) throws MetaException { if (cleaner == null) { cleaner = new CleanerThread(conf, RawStoreProxy.getProxy(conf, conf, @@ -121,7 +121,7 @@ public class DbNotificationListener extends MetaStoreEventListener { // with a Configuration parameter, so we have to declare config as Configuration. But it // actually passes a HiveConf, which we need. So we'll do this ugly down cast. hiveConf = (HiveConf)config; - DbNotificationListener.init(conf); + DbNotificationListener.init(hiveConf); msgFactory = MessageFactory.getInstance(); }