@@ -254,6 +254,10 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
254
254
// / GetWriteId
255
255
256
256
void GetWriteId (const TActorContext& ctx) {
257
+ INFO (" Start of a request to KQP for a WriteId. " <<
258
+ " SessionId: " << Opts.SessionId <<
259
+ " TxId: " << Opts.TxId );
260
+
257
261
auto ev = MakeWriteIdRequest ();
258
262
ctx.Send (NKqp::MakeKqpProxyID (ctx.SelfID .NodeId ()), ev.Release ());
259
263
Become (&TThis::StateGetWriteId);
@@ -270,6 +274,10 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
270
274
}
271
275
272
276
void HandleWriteId (NKqp::TEvKqp::TEvQueryResponse::TPtr& ev, const TActorContext& ctx) {
277
+ INFO (" End of the request to KQP for the WriteId. " <<
278
+ " SessionId: " << Opts.SessionId <<
279
+ " TxId: " << Opts.TxId );
280
+
273
281
auto & record = ev->Get ()->Record ;
274
282
switch (record.GetYdbStatus ()) {
275
283
case Ydb::StatusIds::SUCCESS:
@@ -404,11 +412,19 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
404
412
Y_ABORT_UNLESS (HasWriteId ());
405
413
Y_ABORT_UNLESS (HasSupportivePartitionId ());
406
414
415
+ INFO (" Start of a request to KQP to save PartitionId. " <<
416
+ " SessionId: " << Opts.SessionId <<
417
+ " TxId: " << Opts.TxId );
418
+
407
419
auto ev = MakeWriteIdRequest ();
408
420
ctx.Send (NKqp::MakeKqpProxyID (ctx.SelfID .NodeId ()), ev.Release ());
409
421
}
410
422
411
423
void HandlePartitionIdSaved (NKqp::TEvKqp::TEvQueryResponse::TPtr& ev, const TActorContext&) {
424
+ INFO (" End of a request to KQP to save PartitionId. " <<
425
+ " SessionId: " << Opts.SessionId <<
426
+ " TxId: " << Opts.TxId );
427
+
412
428
auto & record = ev->Get ()->Record ;
413
429
switch (record.GetYdbStatus ()) {
414
430
case Ydb::StatusIds::SUCCESS:
@@ -968,7 +984,10 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
968
984
using IRetryState = IRetryPolicy::IRetryState;
969
985
970
986
static IRetryPolicy::TPtr GetRetryPolicy () {
971
- return IRetryPolicy::GetExponentialBackoffPolicy (Retryable);
987
+ return IRetryPolicy::GetExponentialBackoffPolicy (Retryable,
988
+ TDuration::MilliSeconds (10 ),
989
+ TDuration::MilliSeconds (10 ),
990
+ TDuration::MilliSeconds (100 ));
972
991
};
973
992
974
993
static ERetryErrorClass Retryable (Ydb::StatusIds::StatusCode code) {
0 commit comments