Skip to content

Commit 8206290

Browse files
authored
basic statistics bugfixes KIKIMR-18323 (#915)
1 parent 2c3d1e3 commit 8206290

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ydb/core/cms/console/console__create_tenant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ class TTenantsManager::TTxCreateTenant : public TTransactionBase<TTenantsManager
217217
break;
218218

219219
case Ydb::Cms::CreateDatabaseRequest::kServerlessResources:
220+
Tenant->IsExternalStatisticsAggregator = false;
221+
220222
if (!Tenant->IsExternalSubdomain) {
221223
return Error(Ydb::StatusIds::PRECONDITION_FAILED,
222224
"Cannot create serverless database unless external subdomain is enabled", ctx);

ydb/core/statistics/aggregator/aggregator_impl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ void TStatisticsAggregator::Handle(TEvStatistics::TEvConnectNode::TPtr& ev) {
102102
IsPropagateInFlight = true;
103103
}
104104

105+
if (!record.NeedSchemeShardsSize()) {
106+
return;
107+
}
108+
105109
std::vector<TSSId> ssIds;
106110
ssIds.reserve(record.NeedSchemeShardsSize());
107111
for (const auto& ssId : record.GetNeedSchemeShards()) {

0 commit comments

Comments
 (0)