Skip to content

Commit a87320a

Browse files
[+] logging
1 parent 5c46350 commit a87320a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ydb/core/persqueue/writer/writer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
223223
}
224224

225225
if (auto delay = RetryState->GetNextRetryDelay(code); delay.Defined()) {
226+
INFO("Repeat the request to KQP in " << *delay);
226227
Schedule(*delay, new TEvents::TEvWakeup());
227228
}
228229
}
@@ -276,7 +277,8 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
276277
void HandleWriteId(NKqp::TEvKqp::TEvQueryResponse::TPtr& ev, const TActorContext& ctx) {
277278
INFO("End of the request to KQP for the WriteId. " <<
278279
"SessionId: " << Opts.SessionId <<
279-
" TxId: " << Opts.TxId);
280+
" TxId: " << Opts.TxId <<
281+
" Status: " << ev->Get()->Record.GetRef().GetYdbStatus());
280282

281283
auto& record = ev->Get()->Record;
282284
switch (record.GetYdbStatus()) {
@@ -423,7 +425,8 @@ class TPartitionWriter : public TActorBootstrapped<TPartitionWriter>, private TR
423425
void HandlePartitionIdSaved(NKqp::TEvKqp::TEvQueryResponse::TPtr& ev, const TActorContext&) {
424426
INFO("End of a request to KQP to save PartitionId. " <<
425427
"SessionId: " << Opts.SessionId <<
426-
" TxId: " << Opts.TxId);
428+
" TxId: " << Opts.TxId <<
429+
" Status: " << ev->Get()->Record.GetRef().GetYdbStatus());
427430

428431
auto& record = ev->Get()->Record;
429432
switch (record.GetYdbStatus()) {

0 commit comments

Comments
 (0)