Skip to content

Commit

Permalink
Fixed default retry time
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed Feb 16, 2024
1 parent 043c044 commit 5431cd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ydb/core/fq/libs/compute/ydb/resources_cleaner_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class TResourcesCleanerActor : public TBaseComputeActor<TResourcesCleanerActor>

void Handle(const TEvYdbCompute::TEvForgetOperationResponse::TPtr& ev) {
const auto& response = *ev.Get()->Get();
if (response.Status == NYdb::EStatus::TIMEOUT) {
if (response.Status == NYdb::EStatus::TIMEOUT || response.Status == NYdb::EStatus::CLIENT_DEADLINE_EXCEEDED) {
SendForgetOperation(TDuration::MilliSeconds(BackoffTimer.NextBackoffMs()));
return;
}
Expand Down
5 changes: 3 additions & 2 deletions ydb/library/query_actor/query_actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ class TQueryRetryActor : public NActors::TActorBootstrapped<TQueryRetryActor<TQu
explicit TQueryRetryActor(const NActors::TActorId& replyActorId, const TArgs&... args)
: ReplyActorId(replyActorId)
, RetryPolicy(IRetryPolicy::GetExponentialBackoffPolicy(
Retryable, TDuration::MilliSeconds(10),
TDuration::MilliSeconds(200), TDuration::Seconds(30), 5
Retryable, TDuration::MilliSeconds(10),
TDuration::MilliSeconds(200), TDuration::Seconds(1),
std::numeric_limits<size_t>::max(), TDuration::Seconds(1)
))
, CreateQueryActor([=]() {
return new TQueryActor(args...);
Expand Down

0 comments on commit 5431cd5

Please sign in to comment.