You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vi...@apache.org on 2015/01/30 01:01:30 UTC

svn commit: r1655889 - /hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java

Author: vikram
Date: Fri Jan 30 00:01:30 2015
New Revision: 1655889

URL: http://svn.apache.org/r1655889
Log:
HIVE-9436: RetryingMetaStoreClient does not retry JDOExceptions (Sushanth Sowmyan via Vikram Dixit)

Modified:
    hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java

Modified: hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java?rev=1655889&r1=1655888&r2=1655889&view=diff
==============================================================================
--- hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java (original)
+++ hive/branches/branch-1.0/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java Fri Jan 30 00:01:30 2015
@@ -97,7 +97,7 @@ public class RetryingMetaStoreClient imp
             (e.getCause() instanceof TTransportException)) {
           caughtException = (TException) e.getCause();
         } else if ((e.getCause() instanceof MetaException) &&
-            e.getCause().getMessage().matches("JDO[a-zA-Z]*Exception")) {
+            e.getCause().getMessage().matches("(?s).*JDO[a-zA-Z]*Exception.*")) {
           caughtException = (MetaException) e.getCause();
         } else {
           throw e.getCause();