This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 4a89856 THRIFT-4773: Provide root cause for sasl negotiation failure
4a89856 is described below
commit 4a898564f936b39d45490f370737ce55d4c2b3f5
Author: Qinghui Xu <[email protected]>
AuthorDate: Wed Feb 6 16:12:07 2019 +0100
THRIFT-4773: Provide root cause for sasl negotiation failure
Client: java
The error for sasl negotiation failure dropped the root cause, which makes
troubleshooting sometimes difficult.
---
lib/java/src/org/apache/thrift/transport/TSaslTransport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/java/src/org/apache/thrift/transport/TSaslTransport.java
b/lib/java/src/org/apache/thrift/transport/TSaslTransport.java
index bed3b39..c858425 100644
--- a/lib/java/src/org/apache/thrift/transport/TSaslTransport.java
+++ b/lib/java/src/org/apache/thrift/transport/TSaslTransport.java
@@ -317,7 +317,7 @@ abstract class TSaslTransport extends TTransport {
if (!readSaslHeader && e.getType() == TTransportException.END_OF_FILE) {
underlyingTransport.close();
LOGGER.debug("No data or no sasl data in the stream");
- throw new TSaslTransportException("No data or no sasl data in the
stream");
+ throw new TSaslTransportException("No data or no sasl data in the
stream during negotiation", e);
}
throw e;
}