NettyTransiever doesn't call RPCPlugin.clientReceiveResponse on the same thread 
as clientSendRequest
----------------------------------------------------------------------------------------------------

                 Key: AVRO-949
                 URL: https://issues.apache.org/jira/browse/AVRO-949
             Project: Avro
          Issue Type: Bug
    Affects Versions: 1.5.4, 1.6.0
            Reporter: Philip Zeyliger


RPCPlugin.clientReceiveResponse() is called in the Netty IO thread when using a 
NettyTransceiver.  This is quite different than how HTTPTransceiver does it.

Users can use RPCPlugin to do things like tracing and timing. It's bizarre that 
clientSendRequest() happens in the caller's thread, but clientReceiveResponse() 
happens in a different one, because thread locals are one of the easiest way to 
pass information between these.  There's no easy other way, since RPCContext, 
which is passed along, has no way to associate arbitrary data with itself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to