accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <>
Subject [GitHub] accumulo pull request: ACCUMULO-4065 Create a separate connection ...
Date Mon, 30 Nov 2015 21:11:47 GMT
Github user joshelser commented on the pull request:
    > Can you expand on this? I am really curious about the behavior of thrift when a oneway
throws an exception on the server side.
    Best as I understand it: the oneway modifier just equates to the generated code not calling
the method to read the response for an RPC off the wire. This has multiple implications:
    1. The caller does not know if the application received the message (only that the network
connection succeeded).
    2. The caller does still receive a response object (this is how void works though, not
    3. If you try to run another RPC that isn't oneway on the same connection, it's possible
that the synchronous call will get goofed up by that oneway's void response (this might be
a Thrift bug -- it's certainly a pain to work around).
    Let me test what actually happens in the client code when the oneway throws an exception.
I have a little test harness that I used to play around with this.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message