Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 732C618802 for ; Mon, 30 Nov 2015 21:11:48 +0000 (UTC) Received: (qmail 84192 invoked by uid 500); 30 Nov 2015 21:11:48 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 84151 invoked by uid 500); 30 Nov 2015 21:11:48 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 84140 invoked by uid 99); 30 Nov 2015 21:11:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2015 21:11:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F3476E2C41; Mon, 30 Nov 2015 21:11:47 +0000 (UTC) From: joshelser To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request: ACCUMULO-4065 Create a separate connection ... Content-Type: text/plain Message-Id: <20151130211147.F3476E2C41@git1-us-west.apache.org> Date: Mon, 30 Nov 2015 21:11:47 +0000 (UTC) Github user joshelser commented on the pull request: https://github.com/apache/accumulo/pull/54#issuecomment-160762876 > 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 oneway) 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---