Skip to content

Commit

Permalink
issue-2947: correct issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vladstepanyuk committed Feb 5, 2025
1 parent 6a941ce commit 43cba89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/daemon/common/bootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class TBootstrapBase
virtual void InitKikimrService() = 0;
virtual void InitAuthService() = 0;

virtual void Warmup() = 0;
virtual void WarmupBSGroupsConnections() = 0;

void InitLWTrace();
void InitProfileLog();
Expand Down
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/daemon/local/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void TBootstrapLocal::InitAuthService()
// do nothing
}

void TBootstrapLocal::Warmup()
void TBootstrapLocal::WarmupBSGroupsConnections()
{
// do nothing
}
Expand Down
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/daemon/local/bootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TBootstrapLocal final
void InitKikimrService() override;
void InitAuthService() override;

void Warmup() override;
void WarmupBSGroupsConnections() override;
};

} // namespace NCloud::NBlockStore::NServer
8 changes: 4 additions & 4 deletions cloud/blockstore/libs/daemon/ydb/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ void TBootstrapYdb::InitAuthService()
}
}

void TBootstrapYdb::Warmup()
void TBootstrapYdb::WarmupBSGroupsConnections()
{
if (!Configs->StorageConfig ||
!Configs->StorageConfig->GetTabletBootInfoBackupFilePath())
Expand All @@ -646,7 +646,7 @@ void TBootstrapYdb::Warmup()
TStringBuilder()
<< "trying to read groupIds from tablet boot info file: "
<< tabletBootInfoBackupFilePath);
::NCloud::NStorage::NHiveProxy::NProto::TTabletBootInfoBackup backupProto;
NCloud::NStorage::NHiveProxy::NProto::TTabletBootInfoBackup backupProto;

try {
TFileLock lock(tabletBootInfoBackupFilePath);
Expand Down Expand Up @@ -676,13 +676,13 @@ void TBootstrapYdb::Warmup()

STORAGE_INFO("Sending ping messages to groups");

THashSet<ui32> groupIdsToPing;
THashSet<ui32> groupIdsToWarmup;
for (const auto& [_, tabletBootInfo]: backupProto.GetData()) {
for (const auto& channel: tabletBootInfo.GetStorageInfo().GetChannels())
{
for (const auto& historyEntry: channel.GetHistory()) {
auto groupId = historyEntry.GetGroupID();
auto [_, inserted] = groupIdsToPing.insert(groupId);
auto [_, inserted] = groupIdsToWarmup.insert(groupId);
if (inserted) {
ActorSystem->Send(
NKikimr::MakeBlobStorageProxyID(groupId),
Expand Down
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/daemon/ydb/bootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ struct TBootstrapYdb final
void InitKikimrService() override;
void InitAuthService() override;

void Warmup() override;
void WarmupBSGroupsConnections() override;

private:
void InitConfigs();
Expand Down

0 comments on commit 43cba89

Please sign in to comment.