hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1409068 - /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java
Date Wed, 14 Nov 2012 03:05:54 GMT
Author: hashutosh
Date: Wed Nov 14 03:05:53 2012
New Revision: 1409068

URL: http://svn.apache.org/viewvc?rev=1409068&view=rev
Log:
HIVE-3626 : RetryingHMSHandler should wrap JDOException inside MetaException (Bhushan Mandhani
via Ashutosh Chauhan)

Modified:
    hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java

Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java?rev=1409068&r1=1409067&r2=1409068&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java
(original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java
Wed Nov 14 03:05:53 2012
@@ -24,6 +24,7 @@ import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.lang.reflect.UndeclaredThrowableException;
 
+import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.conf.Configuration;
@@ -131,7 +132,7 @@ public class RetryingHMSHandler implemen
       }
 
       if (retryCount >= retryLimit) {
-        throw caughtException;
+        throw new MetaException(ExceptionUtils.getStackTrace(caughtException));
       }
 
       assert (retryInterval >= 0);



Mime
View raw message