Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.9.1, 0.9.2, 0.9.3
-
None
Description
We noticed the following happening over in ACCUMULO-4065.
A client made a oneway call to a server which ultimately caused a TException to propagate up through to ProcessFunction. This caused a message to be sent back to the client with a TApplicationException wrapping the TException.
The problem is that the client had already returned its connection to a pool because it was oneway (it had no means to know when the call finished – nor did it care). The next client that tried to send an RPC to the same server sent its message, then read the response off the wire, only to get the oneway call's exception Message, not the response for the call it made.
Ultimately, this screwed up the connection (the next client was always reading the previous clients response).
Given my understanding on the current implementation (mostly discerned from the docs, a bit from code), it's my belief that oneway calls can never safely return a message to clients.
Attachments
Attachments
Issue Links
- is related to
-
ACCUMULO-4065 Oneway Thrift calls leave message on client's InputStream
- Resolved
-
ACCUMULO-4584 Determine need for oneway method handling in RpcWrapper
- Resolved