Repository: hive Updated Branches: refs/heads/branch-2.1 69ab3b273 -> f76a63ca6 refs/heads/master b2338ff4e -> 127898f52
HIVE-14600 : LLAP zookeeper registry failures do not fail the daemon (Sergey Shelukhin, reviewed by Prasanth Jayachandran) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/127898f5 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/127898f5 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/127898f5 Branch: refs/heads/master Commit: 127898f52cf5ccd21e5a84eb1ce53ea5ff45afd7 Parents: b2338ff Author: Sergey Shelukhin <ser...@apache.org> Authored: Mon Aug 22 17:03:53 2016 -0700 Committer: Sergey Shelukhin <ser...@apache.org> Committed: Mon Aug 22 17:03:53 2016 -0700 ---------------------------------------------------------------------- .../hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/127898f5/llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java ---------------------------------------------------------------------- diff --git a/llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java b/llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java index ae8dcc4..64d2617 100644 --- a/llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java +++ b/llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java @@ -325,6 +325,7 @@ public class LlapZookeeperRegistryImpl implements ServiceRegistry { } catch (Exception e) { LOG.error("Unable to create a znode for this server instance", e); CloseableUtils.closeQuietly(znode); + throw (e instanceof IOException) ? (IOException)e : new IOException(e); } if (LOG.isDebugEnabled()) {