David Ribeiro Alves has uploaded a new patch set (#8). Change subject: Refactor retry handling logic for writes ......................................................................
Refactor retry handling logic for writes This consolidates the retry handling logic for the WriteRpc by adding th new methods: WriteRpc::AnalyzeResponse() WriteRpc::RetryIfNeeded(). These are analogous to a recent refactor of the scan code and the first one analyzes the response splitting it into retryable/non-retryable categories, whereas the second one actually takes action if the category is retryable. This is a percursor to other changes that will pull this logic out of WriteRpc and into somewhere we can use for other rpcs that have the same behavior (replicated/retryable ones). This introduces no tests as there is no new functionality, just a refactoring of the code. Change-Id: I0e0d491f902191c88c58e3d627106cc1be1bb3cc --- M src/kudu/client/batcher.cc M src/kudu/client/meta_cache.cc A src/kudu/rpc/replicated_rpc.h 3 files changed, 147 insertions(+), 49 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/70/2970/8 -- To view, visit http://gerrit.cloudera.org:8080/2970 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I0e0d491f902191c88c58e3d627106cc1be1bb3cc Gerrit-PatchSet: 8 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: David Ribeiro Alves <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: David Ribeiro Alves <[email protected]> Gerrit-Reviewer: Todd Lipcon <[email protected]>
