Skip to content

Commit

Permalink
[NBS] Increase logging verbosity: include group ID in (Read|Write)Blo…
Browse files Browse the repository at this point in the history
…b logs
  • Loading branch information
ya-ksgamora committed Jan 30, 2025
1 parent 770a655 commit 600a1a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ void TPartitionActor::HandleReadBlobCompleted(
>= Config->GetMaxReadBlobErrorsBeforeSuicide())
{
LOG_WARN(ctx, TBlockStoreComponents::PARTITION,
"[%lu] Stop tablet because of too many ReadBlob errors: %s",
"[%lu] [group:%u] Stop tablet because of too many ReadBlob errors: %s",
TabletID(),
msg->GroupId,
FormatError(msg->GetError()).data());

ReportTabletBSFailure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,9 @@ void TPartitionActor::HandleWriteBlobCompleted(

if (FAILED(msg->GetStatus())) {
LOG_WARN(ctx, TBlockStoreComponents::PARTITION,
"[%lu] Stop tablet because of WriteBlob error: %s",
"[%lu] [group:%u] Stop tablet because of WriteBlob error: %s",
TabletID(),
groupId,
FormatError(msg->GetError()).data());

ReportTabletBSFailure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,9 @@ void TPartitionActor::HandleReadBlobCompleted(
>= Config->GetMaxReadBlobErrorsBeforeSuicide())
{
LOG_WARN(ctx, TBlockStoreComponents::PARTITION,
"[%lu] Stop tablet because of too many ReadBlob errors: %s",
"[%lu] [group:%u] Stop tablet because of too many ReadBlob errors: %s",
TabletID(),
msg->GroupId,
FormatError(msg->GetError()).data());

ReportTabletBSFailure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ void TPartitionActor::HandleWriteBlobCompleted(

if (FAILED(msg->GetStatus())) {
LOG_WARN(ctx, TBlockStoreComponents::PARTITION,
"[%lu] Stop tablet because of WriteBlob error: %s",
"[%lu] [group:%u] Stop tablet because of WriteBlob error: %s",
TabletID(),
group,
FormatError(msg->GetError()).data());

ReportTabletBSFailure();
Expand Down

0 comments on commit 600a1a5

Please sign in to comment.