[ https://issues.apache.org/jira/browse/THRIFT-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III resolved THRIFT-4773. --------------------------------------- Resolution: Fixed Assignee: James E. King III Fix Version/s: 0.13.0 > TSaslTransport should relay underlying TTransportException to > TSaslTransportException > -------------------------------------------------------------------------------------- > > Key: THRIFT-4773 > URL: https://issues.apache.org/jira/browse/THRIFT-4773 > Project: Thrift > Issue Type: Improvement > Reporter: Qinghui Xu > Assignee: James E. King III > Priority: Major > Fix For: 0.13.0 > > Time Spent: 20m > Remaining Estimate: 0h > > For java lib: > Currently when opening TsaslTransport, it will raise TSaslTransportException > if the underlying transport throws an TTransportException, without relaying > the root cause. This is confusing sometimes when user tries to trouble shoot > the problem. > We got some stack trace like this, but could not see about the true root > cause: > {code:java} > 19/02/06 15:46:55 [HiveServer2-Handler-Pool: Thread-666]: ERROR > server.TThreadPoolServer: Error occurred during processing of message. > java.lang.RuntimeException: > org.apache.thrift.transport.TSaslTransportException: No data or no sasl data > in the stream > at > org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:793) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:790) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1900) > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory.getTransport(HadoopThriftAuthBridge.java:790) > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:269) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > Caused by: org.apache.thrift.transport.TSaslTransportException: No data or no > sasl data in the stream > at > org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:328) > at > org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41) > at > org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216) > ... 10 more{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)