Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTreeIndex Bugfix SchemeShard Clear #655

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 40 additions & 14 deletions ydb/core/tx/schemeshard/schemeshard_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,47 @@ TMessageSeqNo TSchemeShard::NextRound() {

void TSchemeShard::Clear() {
PathsById.clear();

Tables.clear();
TTLEnabledTables.clear();

Indexes.clear();
CdcStreams.clear();
Sequences.clear();
Replications.clear();
BlobDepots.clear();

TablesWithSnapshots.clear();
SnapshotTables.clear();
SnapshotsStepIds.clear();

LockedPaths.clear();

Topics.clear();
RtmrVolumes.clear();
SolomonVolumes.clear();
SubDomains.clear();
BlockStoreVolumes.clear();
FileStoreInfos.clear();
KesusInfos.clear();
OlapStores.clear();
ExternalTables.clear();
ExternalDataSources.clear();
Views.clear();

ColumnTables = { };

RevertedMigrations.clear();

Operations.clear();
Publications.clear();
TxInFlight.clear();

ShardInfos.clear();
AdoptedShards.clear();
TabletIdToShardIdx.clear();

PartitionMetricsMap.clear();

if (CompactionQueue) {
CompactionQueue->Clear();
Expand All @@ -346,18 +386,6 @@ void TSchemeShard::Clear() {

ShardsWithBorrowed.clear();
ShardsWithLoaned.clear();
Topics.clear();
RtmrVolumes.clear();
SubDomains.clear();
BlockStoreVolumes.clear();
KesusInfos.clear();
TxInFlight.clear();
ShardInfos.clear();
Indexes.clear();
CdcStreams.clear();
RevertedMigrations.clear();
Sequences.clear();
Replications.clear();

for(ui32 idx = 0; idx < TabletCounters->Simple().Size(); ++idx) {
TabletCounters->Simple()[idx].Set(0);
Expand All @@ -366,8 +394,6 @@ void TSchemeShard::Clear() {
TabletCounters->Percentile()[COUNTER_SHARDS_WITH_SEARCH_HEIGHT].Clear();
TabletCounters->Percentile()[COUNTER_SHARDS_WITH_FULL_COMPACTION].Clear();
TabletCounters->Percentile()[COUNTER_SHARDS_WITH_ROW_DELETES].Clear();

PartitionMetricsMap.clear();
}

void TSchemeShard::IncrementPathDbRefCount(const TPathId& pathId, const TStringBuf& debug) {
Expand Down
Loading