Alexey Serbin has uploaded a new change for review. http://gerrit.cloudera.org:8080/6816
Change subject: WIP [java] re-acquire authn token if expired ...................................................................... WIP [java] re-acquire authn token if expired This patch introduces automatic authn token re-acquisition when current authn token expires. The client automatically retries the RPC that hits the token expiration error. Added a test to exercise the new retry logic for token expiration in case of a basic workload scenario. In this commit I also added a few lines of code to retry RPC for the case if server sends ERROR_UNAVAILABLE error code (which is a broader version of its ERROR_SERVER_TOO_BUSY counterpart). WIP: there are a couple of TODOs to address * synchronization of setting/resetting authn token in the client context * a test scenario with more exhaustive workload Change-Id: Iad5bef1d06708215839037741cd3bc213e130af2 --- M java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduClient.java M java/kudu-client/src/main/java/org/apache/kudu/client/Negotiator.java M java/kudu-client/src/main/java/org/apache/kudu/client/TabletClient.java A java/kudu-client/src/test/java/org/apache/kudu/client/TestAuthnTokenReacquire.java 4 files changed, 231 insertions(+), 18 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/16/6816/1 -- To view, visit http://gerrit.cloudera.org:8080/6816 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iad5bef1d06708215839037741cd3bc213e130af2 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Alexey Serbin <aser...@cloudera.com>