Sahil Takiar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14882


Change subject: IMPALA-9138: Classify certain errors as retryable
......................................................................

IMPALA-9138: Classify certain errors as retryable

This patch modifies Status objects so they can be classified as
"Retryable". This is modelled using a new field in TStatus called
TStatusProperties. TStatusProperties is a struct of properties used to
describe a TStatus object.

SetIsRetryable() can be used to mark a Status as "Retryable" and
IsRetryable() can be used to check if a method is retryable or not
(similar to IsRecoverable() or IsInternalError()).

Currently, if a Status is marked as "Retryable"
(e.g. Status::IsRetryable() == true), nothing happens. The change is
simply meant to lay the groundwork for future changes in IMPALA-9124.

This patch extends the usage of TStatusProperties to create "Recoverable"
errors as well, which replaces the current RECOVERABLE TErrorCode.

Change-Id: I8a79b0245cb5d4349aa375e6503bcc5bec3b72a3
---
M be/src/common/status.cc
M be/src/common/status.h
M be/src/runtime/krpc-data-stream-sender.cc
M be/src/service/client-request-state.cc
M be/src/util/container-util.h
M be/src/util/error-util.h
M common/protobuf/common.proto
M common/thrift/Status.thrift
M common/thrift/generate_error_codes.py
9 files changed, 125 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/82/14882/1
--
To view, visit http://gerrit.cloudera.org:8080/14882
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a79b0245cb5d4349aa375e6503bcc5bec3b72a3
Gerrit-Change-Number: 14882
Gerrit-PatchSet: 1
Gerrit-Owner: Sahil Takiar <[email protected]>

Reply via email to