Jean-Daniel Cryans has submitted this change and it was merged.

Change subject: KUDU-1888. java: fix handling of RPCs which fail before they 
are sent
......................................................................


KUDU-1888. java: fix handling of RPCs which fail before they are sent

As described in the bug report, this fixes a race where, if an RPC was
sent when it had already timed out (eg due to overloaded CPU) it would
return a deferred error, and call the RPC's errback, but the returned
deferred would not actually be the same object as the RPC deferred. This
means that adding additional errbacks to the return value would not be
able to transform the result of the RPC.

Change-Id: I85ef2a215becb84c805e62f0da229b901e109193
Reviewed-on: http://gerrit.cloudera.org:8080/6051
Tested-by: Kudu Jenkins
Reviewed-by: Jean-Daniel Cryans <[email protected]>
---
M java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduClient.java
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Jean-Daniel Cryans: Looks good to me, approved
  Kudu Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/6051
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I85ef2a215becb84c805e62f0da229b901e109193
Gerrit-PatchSet: 3
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Todd Lipcon <[email protected]>
Gerrit-Reviewer: Dan Burkert <[email protected]>
Gerrit-Reviewer: Jean-Daniel Cryans <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to