File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 32
32
namespace {
33
33
TDuration CalculateNextAttemptDelay (const NKikimr::NKqp::TWriteActorSettings& settings, ui64 attempt) {
34
34
auto delay = settings.StartRetryDelay ;
35
- for (ui64 index = 0 ; index < attempt; ++index) {
35
+ for (ui64 index = 0 ; index < attempt && delay * ( 1 - settings. UnsertaintyRatio ) <= settings. MaxRetryDelay ; ++index) {
36
36
delay *= settings.Multiplier ;
37
37
}
38
38
@@ -214,7 +214,8 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
214
214
const TActorId sessionActorId,
215
215
TIntrusivePtr<TKqpCounters> counters,
216
216
NWilson::TTraceId traceId)
217
- : TypeEnv(typeEnv)
217
+ : MessageSettings(GetWriteActorSettings())
218
+ , TypeEnv(typeEnv)
218
219
, Alloc(alloc)
219
220
, MvccSnapshot(mvccSnapshot)
220
221
, LockMode(lockMode)
You can’t perform that action at this time.
0 commit comments