aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBulat <brgayazov@yandex-team.ru>2024-03-06 13:40:31 +0300
committerGitHub <noreply@github.com>2024-03-06 13:40:31 +0300
commit891d7ee86f008170cb9fe9c019801fc6c530034d (patch)
tree6f1c0dbf4a4f7a46e30ca41c2dee0ccaa01454b1
parenteb189ec5495316e477ce738f73947fc5102f1089 (diff)
downloadydb-891d7ee86f008170cb9fe9c019801fc6c530034d.tar.gz
Raised timeouts in ydb tools restore command (#2470)
-rw-r--r--ydb/library/backup/query_uploader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/library/backup/query_uploader.cpp b/ydb/library/backup/query_uploader.cpp
index c9689c3b2e..6ef25b5d36 100644
--- a/ydb/library/backup/query_uploader.cpp
+++ b/ydb/library/backup/query_uploader.cpp
@@ -113,8 +113,8 @@ bool TUploader::Push(TParams params) {
auto transaction = NYdb::NTable::TTxControl::BeginTx(NYdb::NTable::TTxSettings::SerializableRW()).CommitTx();
auto settings = NTable::TExecDataQuerySettings()
.RequestType(DOC_API_REQUEST_TYPE)
- .OperationTimeout(TDuration::Seconds(30))
- .ClientTimeout(TDuration::Seconds(35));
+ .OperationTimeout(TDuration::Seconds(100))
+ .ClientTimeout(TDuration::Seconds(120));
return dataQuery.Execute(transaction, std::move(params), settings).GetValueSync();
};
@@ -134,6 +134,8 @@ bool TUploader::Push(TParams params) {
auto settings = NYdb::NTable::TRetryOperationSettings()
.MaxRetries(Opts.RetryOperaionMaxRetries)
+ .FastBackoffSettings(NRetry::TBackoffSettings().SlotDuration(TDuration::MilliSeconds(10)).Ceiling(10))
+ .SlowBackoffSettings(NRetry::TBackoffSettings().SlotDuration(TDuration::Seconds(2)).Ceiling(6))
.Idempotent(true);
auto status = Client.RetryOperationSync(upload, settings);