Skip to content

Commit

Permalink
x[Filestore] add client ids of active sessions to error message when …
Browse files Browse the repository at this point in the history
…destroying filesystem (#2351)
  • Loading branch information
SvartMetal authored Oct 25, 2024
1 parent f433131 commit 8a364a5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ void TDestroyFileStoreActor::HandleDescribeSessionsResponse(
}

if (msg->Record.SessionsSize() != 0) {
ReplyAndDie(
ctx,
MakeError(E_REJECTED, "FileStore has active sessions"));
TStringBuilder message;
message << "FileStore has active sessions with client ids:";
for (const auto& sessionInfo: msg->Record.GetSessions()) {
message << " " << sessionInfo.GetClientId();
}
ReplyAndDie(ctx, MakeError(E_REJECTED, message));
return;
}

Expand Down

0 comments on commit 8a364a5

Please sign in to comment.