hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-23797) Throw exception when no metastore found in zookeeper
Date Mon, 06 Jul 2020 15:08:00 GMT


ASF GitHub Bot logged work on HIVE-23797:

                Author: ASF GitHub Bot
            Created on: 06/Jul/20 15:07
            Start Date: 06/Jul/20 15:07
    Worklog Time Spent: 10m 
      Work Description: dengzhhu653 commented on a change in pull request #1201:

File path: standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/
@@ -327,6 +327,13 @@ private void resolveUris() throws MetaException {
+    if (metastoreUrisString.isEmpty() && "zookeeper".equalsIgnoreCase(serviceDiscoveryMode))
+      throw new MetaException("No metastore server available. "
+          + "Please ensure that at least one metastore server is online");
+    }
+"Resolved metastore uris: " + Arrays.toString(metastoreUrisString.toArray()));

Review comment:

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 454895)
    Time Spent: 0.5h  (was: 20m)

> Throw exception when no metastore  found in zookeeper
> -----------------------------------------------------
>                 Key: HIVE-23797
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
> When enable service discovery for metastore, there is a chance that the client may find
no metastore uris available in zookeeper, such as during metastores startup or the client
wrongly configured the path. This results to redundant retries and finally MetaException
with "Unknown exception" message.

This message was sent by Atlassian Jira

View raw message