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 3232namespace {
3333 TDuration CalculateNextAttemptDelay (const NKikimr::NKqp::TWriteActorSettings& settings, ui64 attempt) {
3434 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) {
3636 delay *= settings.Multiplier ;
3737 }
3838
@@ -214,7 +214,8 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
214214 const TActorId sessionActorId,
215215 TIntrusivePtr<TKqpCounters> counters,
216216 NWilson::TTraceId traceId)
217- : TypeEnv(typeEnv)
217+ : MessageSettings(GetWriteActorSettings())
218+ , TypeEnv(typeEnv)
218219 , Alloc(alloc)
219220 , MvccSnapshot(mvccSnapshot)
220221 , LockMode(lockMode)
You can’t perform that action at this time.
0 commit comments