[
https://issues.apache.org/jira/browse/HIVE-10384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14505761#comment-14505761
]
Eric Liang commented on HIVE-10384:
-----------------------------------
Oh sorry, I misunderstood your comment. I believe that TTransportException is
indeed thrown from within invoke(). For example, see this stack trace:
{code}
Got excep
tion: org.apache.thrift.transport.TTransportException null
org.apache.thrift.transport.TTransportException
at
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
at
org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
at
org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_tables(ThriftHiveMetastore.java:9
83)
at
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_tables(ThriftHiveMetastore.java:969)
at
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTables(HiveMetaStoreClient.java:1038)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:89)
{code}
I believe the offending method that wraps this exception is in MetaStoreUtils:
logAndThrowMetaException(Exception e) throws MetaException
> RetryingMetaStoreClient does not retry wrapped TTransportExceptions
> -------------------------------------------------------------------
>
> Key: HIVE-10384
> URL: https://issues.apache.org/jira/browse/HIVE-10384
> Project: Hive
> Issue Type: Bug
> Components: Clients
> Reporter: Eric Liang
> Assignee: Chaoyu Tang
> Attachments: HIVE-10384.patch
>
>
> This bug is very similar to HIVE-9436, in that a TTransportException wrapped
> in a MetaException will not be retried. RetryingMetaStoreClient has a block
> of code above the MetaException handler that retries thrift exceptions, but
> this doesn't work when the exception is wrapped.
> {code}
> if ((e.getCause() instanceof TApplicationException) ||
> (e.getCause() instanceof TProtocolException) ||
> (e.getCause() instanceof TTransportException)) {
> caughtException = (TException) e.getCause();
> } else if ((e.getCause() instanceof MetaException) &&
>
> e.getCause().getMessage().matches("(?s).*JDO[a-zA-Z]*Exception.*")) {
> caughtException = (MetaException) e.getCause();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)