Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/16967 )

Change subject: KUDU-2612 keep-alive txn heartbeating for Java client
......................................................................

KUDU-2612 keep-alive txn heartbeating for Java client

This patch adds keep-alive txn heartbeating into the Kudu Java client.

The txn keepalive heartbeating is performed automatically by the client,
and no API is exposed to send keep-alive messages for a transaction.
The txn keepalive heartbeating continues until the original
auto-closeable transaction handle (i.e. the handle created by
KuduClient.newTransaction()) goes out of scope or the
KuduTransaction.close() method called explicitly.

Overall, the keepalive heartbeating behavior in the Kudu Java client
mirrors the behavior of its C++ counterpart.

This patch also contains a couple of test scenarios to cover the
newly introduced functionality.

Change-Id: I6326a5452223d8173b2da004bb5f3ab0c1e6ae4e
Reviewed-on: http://gerrit.cloudera.org:8080/16967
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
---
M 
java/kudu-client/src/main/java/org/apache/kudu/client/BeginTransactionRequest.java
A 
java/kudu-client/src/main/java/org/apache/kudu/client/KeepTransactionAliveRequest.java
A 
java/kudu-client/src/main/java/org/apache/kudu/client/KeepTransactionAliveResponse.java
M java/kudu-client/src/main/java/org/apache/kudu/client/KuduTransaction.java
M java/kudu-client/src/test/java/org/apache/kudu/client/TestKuduTransaction.java
5 files changed, 497 insertions(+), 9 deletions(-)

Approvals:
  Alexey Serbin: Looks good to me, approved; Verified

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6326a5452223d8173b2da004bb5f3ab0c1e6ae4e
Gerrit-Change-Number: 16967
Gerrit-PatchSet: 6
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to