diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java index 4c9299c..a3df73d 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java @@ -98,7 +98,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl (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(".*JDO[a-zA-Z]*Exception.*")) { caughtException = (MetaException) e.getCause(); } else { throw e.getCause();