Hello Grant Henke,

I'd like you to do a code review. Please visit

    http://gerrit.cloudera.org:8080/17493

to review the following change.


Change subject: KUDU-3277 fix concurrent session flush issue in Java client
......................................................................

KUDU-3277 fix concurrent session flush issue in Java client

This patch fixes the issue reported by KUDU-3277.  The bug manifested
itself in rare cases when a session running in the AUTO_FLUSH_BACKGROUND
mode was either being flushed explicitly or implicitly (i.e. upon
closing the session) while the AUTO_FLUSH_BACKGROUND session's logic was
flushing its data buffers concurrently as well.

This patch also adds a reproduction scenario for KUDU-3277.  The newly
introduced test scenario was reliably failing before the fix:

  * 'java.lang.AssertionError: This Deferred was already called'
    messages were encountered in the log multiple times with the stack
    exactly as described in KUDU-3277

  * some flusher threads were unable to join since KuduSession.flush()
    would hang (i.e. would not return)

Change-Id: If6aaccc06abf1a2673620ab7c649f51f91999ad9
Reviewed-on: http://gerrit.cloudera.org:8080/17486
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Grant Henke <[email protected]>
(cherry picked from commit d1969e2623e30bfd62f2463f15e0bf02422d1d84)
---
M java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduSession.java
M java/kudu-client/src/test/java/org/apache/kudu/client/TestKuduClient.java
2 files changed, 170 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/93/17493/1
--
To view, visit http://gerrit.cloudera.org:8080/17493
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.15.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6aaccc06abf1a2673620ab7c649f51f91999ad9
Gerrit-Change-Number: 17493
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>

Reply via email to