Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16967
Change subject: WIP KUDU-2612 keep-alive txn heartbeating for Java client ...................................................................... WIP 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. WIP: * add more tests (e.g., test for the de-serialized handles, etc.) Change-Id: I6326a5452223d8173b2da004bb5f3ab0c1e6ae4e --- 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 4 files changed, 273 insertions(+), 6 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/67/16967/1 -- 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: newchange Gerrit-Change-Id: I6326a5452223d8173b2da004bb5f3ab0c1e6ae4e Gerrit-Change-Number: 16967 Gerrit-PatchSet: 1 Gerrit-Owner: Alexey Serbin <[email protected]>
