Skip to content

Commit

Permalink
disable db metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vporyadke committed Apr 3, 2024
1 parent 2631f5b commit 4f25730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions ydb/core/driver_lib/run/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ union TBasicKikimrServicesMask {

TBasicKikimrServicesMask() {
EnableAll();
EnableDatabaseMetadataCache = false;
}
};

Expand Down
11 changes: 1 addition & 10 deletions ydb/core/grpc_services/rpc_monitoring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,7 @@ class TSelfCheckRPC : public TRpcRequestActor<TSelfCheckRPC, TEvSelfCheckRequest
}

void Bootstrap() {
if (GetProtoRequest()->do_not_cache() || !Request->GetDatabaseName()) {
SendHealthCheckRequest();
} else {
auto domainInfo = AppData()->DomainsInfo->Domains.begin()->second;
RegisterWithSameMailbox(CreateBoardLookupActor(MakeDatabaseMetadataCacheBoardPath(Request->GetDatabaseName().GetRef()),
SelfId(),
domainInfo->DefaultStateStorageGroup,
EBoardLookupMode::Second));
Become(&TThis::StateResolve);
}
SendHealthCheckRequest();
}

STATEFN(StateWaitHealthCheck) {
Expand Down

0 comments on commit 4f25730

Please sign in to comment.