FAQ
Author: kevinwilfong
Date: Sat Jun 23 01:47:22 2012
New Revision: 1353059

URL: http://svn.apache.org/viewvc?rev=1353059&view=rev
Log:
HIVE-3178. retry not honored in RetryingRawMetastore. (Namit Jain via kevinwilfong)

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

Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingRawStore.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingRawStore.java?rev=1353059&r1=1353058&r2=1353059&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingRawStore.java (original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingRawStore.java Sat Jun 23 01:47:22 2012
@@ -115,7 +115,14 @@ public class RetryingRawStore implements
} catch (UndeclaredThrowableException e) {
throw e.getCause();
} catch (InvocationTargetException e) {
- throw e.getCause();
+ if (e.getCause() instanceof javax.jdo.JDOException) {
+ // Due to reflection, the jdo exception is wrapped in
+ // invocationTargetException
+ caughtException = e;
+ }
+ else {
+ throw e.getCause();
+ }
}

if (retryCount >= retryLimit) {

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJun 23, '12 at 1:47a
activeJun 23, '12 at 1:47a
posts1
users1
websitehive.apache.org

1 user in discussion

Kevinwilfong: 1 post

People

Translate

site design / logo © 2021 Grokbase