hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ekoif...@apache.org
Subject [1/3] hive git commit: HIVE-12567 Enhance TxnHandler retry logic to handle ORA-08176 (Eugene Koifman, reviewed by Jason Dere)
Date Fri, 04 Dec 2015 16:36:01 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 f9e5b211a -> e57d2db87


HIVE-12567 Enhance TxnHandler retry logic to handle ORA-08176 (Eugene Koifman, reviewed by
Jason Dere)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/78440120
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/78440120
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/78440120

Branch: refs/heads/branch-1
Commit: 78440120b2c6530f5f7ada35aaf5a5b6a38b9bd4
Parents: f9e5b21
Author: Eugene Koifman <ekoifman@hortonworks.com>
Authored: Fri Dec 4 07:39:51 2015 -0800
Committer: Eugene Koifman <ekoifman@hortonworks.com>
Committed: Fri Dec 4 07:39:51 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/78440120/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java b/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java
index 78c371a..60f84f6 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java
@@ -2255,7 +2255,10 @@ public class TxnHandler {
         //in MSSQL this means Communication Link Failure
         return true;
       }
-      //see https://issues.apache.org/jira/browse/HIVE-9938
+      if("ORA-08176".equalsIgnoreCase(sqlException.getSQLState())) {
+        return true;
+      }
+      //see also https://issues.apache.org/jira/browse/HIVE-9938
     }
     return false;
   }


Mime
View raw message