Skip to content

Commit

Permalink
Log channels when booting tablet (#2719)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvartMetal authored Dec 17, 2024
1 parent 4b53fd0 commit edc7d40
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cloud/storage/core/libs/hive_proxy/hive_proxy_actor_bootext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ namespace {

////////////////////////////////////////////////////////////////////////////////

TString PrintChannels(const TVector<TTabletChannelInfo>& channels)
{
TStringBuilder res;
res << "[";
for (size_t i = 0; i < channels.size(); i++) {
if (i != 0) {
res << ", ";
}
res << channels[i].ToString();
}
res << "]";
return res;
}

////////////////////////////////////////////////////////////////////////////////

class TBootRequestActor final
: public TActorBootstrapped<TBootRequestActor>
{
Expand Down Expand Up @@ -123,6 +139,13 @@ void TBootRequestActor::HandleBoot(
TabletStorageInfoFromProto(msg->Record.GetInfo());
ui64 suggestedGeneration = msg->Record.GetSuggestedGeneration();

LOG_DEBUG(
ctx,
LogComponent,
"[%s] Booting tablet with channels: %s",
ToString(storageInfo->TabletID).c_str(),
PrintChannels(storageInfo->Channels).c_str());

if (TabletBootInfoBackup) {
auto updateRequest =
std::make_unique<TEvHiveProxyPrivate::TEvUpdateTabletBootInfoBackupRequest>(
Expand Down

0 comments on commit edc7d40

Please sign in to comment.