Skip to content

Commit

Permalink
Moved "Abiltit to retry undefined status" commit from ydb repo
Browse files Browse the repository at this point in the history
  • Loading branch information
iddqdex committed May 28, 2024
1 parent ee9592a commit 715b141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/ydb-cpp-sdk/client/retry/retry.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct TRetryOperationSettings {
FLUENT_SETTING_DEFAULT(TBackoffSettings, SlowBackoffSettings, DefaultSlowBackoffSettings());
FLUENT_SETTING_FLAG(Idempotent);
FLUENT_SETTING_FLAG(Verbose);
FLUENT_SETTING_FLAG(RetryUndefined);

static TBackoffSettings DefaultFastBackoffSettings() {
return TBackoffSettings()
Expand Down
2 changes: 1 addition & 1 deletion src/client/impl/ydb_internal/retry/retry.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class TRetryContextBase : TNonCopyable {
}

default:
return NextStep::Finish;
return Settings_.RetryUndefined_ ? NextStep::RetrySlowBackoff : NextStep::Finish;
}
}

Expand Down

0 comments on commit 715b141

Please sign in to comment.