hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1521704 - /hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java
Date Wed, 11 Sep 2013 00:46:19 GMT
Author: navis
Date: Wed Sep 11 00:46:19 2013
New Revision: 1521704

URL: http://svn.apache.org/r1521704
Log:
HIVE-5225 : There is no database named nonexistentdatabaseusedforhealthcheck (Sergey Shelukhin
via Navis)

Modified:
    hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java

Modified: hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java?rev=1521704&r1=1521703&r2=1521704&view=diff
==============================================================================
--- hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java
(original)
+++ hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java
Wed Sep 11 00:46:19 2013
@@ -273,11 +273,7 @@ class HiveClientCache {
     protected boolean isOpen() {
       try {
         // Look for an unlikely database name and see if either MetaException or TException
is thrown
-        this.getDatabase("NonExistentDatabaseUsedForHealthCheck");
-      } catch (NoSuchObjectException e) {
-        return true; // It is okay if the database doesn't exist
-      } catch (MetaException e) {
-        return false;
+        this.getDatabases("NonExistentDatabaseUsedForHealthCheck");
       } catch (TException e) {
         return false;
       }



Mime
View raw message