You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2016/04/01 09:05:25 UTC

[jira] [Created] (THRIFT-3769) Fix logic of THRIFT-2268

Harsh J created THRIFT-3769:
-------------------------------

             Summary: Fix logic of THRIFT-2268
                 Key: THRIFT-3769
                 URL: https://issues.apache.org/jira/browse/THRIFT-3769
             Project: Thrift
          Issue Type: Bug
          Components: Java - Library
    Affects Versions: 0.9.2
            Reporter: Harsh J
            Priority: Minor


THRIFT-2268 intended to reduce the logging noise of TSaslTransport enabled servers, but the commit doesn't help in doing so (its just adding more specific noise today).

This is because the transport factory overrides disallow throwing specific execution types (no TTransportException in signature), and thereby all implementations will throw a RuntimeException-wrapped exception, which the added catch clauses would never encounter.

https://github.com/apache/thrift/blob/master/lib/java/src/org/apache/thrift/transport/TSaslServerTransport.java#L217-L219
https://github.com/apache/thrift/blob/master/lib/java/src/org/apache/thrift/server/TThreadPoolServer.java#L290-L295

We'll need to unwrap the RuntimeException to perform an actual valid cause check.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)