Skip to content

Commit

Permalink
[Filestore] Add logs for endpoints restoration (#2812)
Browse files Browse the repository at this point in the history
* [Filestore] Add logs for endpoints restoration

* fix log message
  • Loading branch information
antonmyagkov authored Jan 14, 2025
1 parent 932587f commit c7fd32f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud/filestore/libs/endpoint/endpoint_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ private: \

TVector<TFuture<void>> futures;
for (auto endpointId: storedIds) {
STORAGE_INFO("Restoring endpoint, ID: " << endpointId.Quote());
auto requestOrError = Storage->GetEndpoint(endpointId);
if (HasError(requestOrError)) {
STORAGE_WARN("Failed to restore endpoint. ID: " << endpointId
Expand Down Expand Up @@ -253,6 +254,9 @@ private: \
Storage->RemoveEndpoint(endpointId);
}
}
else {
STORAGE_INFO("Endpoint was restored. ID: " << endpointId.Quote());
}
}

void AddStartingSocket(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ void TCreateSessionActor::HandleDescribeFileStoreResponse(

if (FAILED(msg->GetStatus())) {
if (GetErrorKind(msg->GetError()) != EErrorKind::ErrorRetriable) {
LOG_ERROR(
ctx,
TFileStoreComponents::SERVICE_WORKER,
"%s Failed to describe filestore %s Error: %s",
LogTag().c_str(),
FileSystemId.c_str(),
FormatError(msg->GetError()).c_str());
ReportDescribeFileStoreError();
}

Expand Down

0 comments on commit c7fd32f

Please sign in to comment.