Skip to content

Commit

Permalink
testme
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Feb 4, 2025
1 parent a6640cf commit c77a034
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cloud/filestore/apps/client/lib/create_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TCreateSessionCommand final
request->MutableHeaders()->SetClientId(ClientId);
request->MutableHeaders()->SetSessionSeqNo(SeqNo);

TCallContextPtr ctx = MakeIntrusive<TCallContext>();
TCallContextPtr ctx = MakeIntrusive<TCallContext>(FileSystemId);
auto response = WaitFor(Client->CreateSession(ctx, std::move(request)));
CheckResponse(response);
Print(response, JsonOutput);
Expand Down
2 changes: 1 addition & 1 deletion cloud/filestore/apps/client/lib/destroy_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TDestroySessionCommand final
request->MutableHeaders()->SetClientId(ClientId);
request->MutableHeaders()->SetSessionSeqNo(SeqNo);

TCallContextPtr ctx = MakeIntrusive<TCallContext>();
TCallContextPtr ctx = MakeIntrusive<TCallContext>(FileSystemId);
auto response = WaitFor(Client->DestroySession(ctx, std::move(request)));
CheckResponse(response);
Print(response, JsonOutput);
Expand Down
2 changes: 1 addition & 1 deletion cloud/filestore/apps/client/lib/forced_compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TForcedCompactionCommand final
STORAGE_DEBUG("Sending ExecuteAction request");
const auto requestId = GetRequestId(*request);
auto result = WaitFor(Client->ExecuteAction(
MakeIntrusive<TCallContext>(requestId),
MakeIntrusive<TCallContext>(FileSystemId, requestId),
std::move(request)));

STORAGE_DEBUG("Received ExecuteAction response");
Expand Down
6 changes: 4 additions & 2 deletions cloud/filestore/libs/diagnostics/profile_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,17 @@ void TProfileLog::Stop()

void TProfileLog::Write(TRecord record)
{
// TODO(proller): Remove debug after bug fix
//STORAGE_VERIFY_DEBUG_C(record.FileSystemId.empty(), "", "", "Missing filesystem id in profile log");
static bool reported = false;
if (!reported && record.FileSystemId.empty()) {
reported = true;
DUMP("profile log write without fs", record.Request.ShortDebugString().Quote());
Cerr << "Profile log record without filesystem id. Trace:\n";
PrintBackTrace();
}

// TODO(proller): Remove debug after bug fix
STORAGE_VERIFY_DEBUG_C(!record.FileSystemId.empty(), "", record.FileSystemId, "Missing filesystem id in profile log");

Records.Enqueue(std::move(record));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ class TDataRequestGenerator final
TIntrusivePtr<TCallContext> CreateCallContext()
{
return MakeIntrusive<TCallContext>(
FileSystemId,
LastRequestId.fetch_add(1, std::memory_order_relaxed));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class TIndexRequestGenerator final

TIntrusivePtr<TCallContext> CreateCallContext()
{
return MakeIntrusive<TCallContext>(AtomicIncrement(LastRequestId));
return MakeIntrusive<TCallContext>(FileSystemId, AtomicIncrement(LastRequestId));
}
};

Expand Down

0 comments on commit c77a034

Please sign in to comment.