thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qinghui Xu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-4773) TSaslTransport should relay underlying TTransportException to TSaslTransportException
Date Wed, 06 Feb 2019 15:48:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Qinghui Xu updated THRIFT-4773:
-------------------------------
    Description: 
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}

  was: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.


> 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
>            Priority: Major
>          Time Spent: 10m
>  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)

Mime
View raw message