@@ -7304,6 +7304,10 @@ void TSchemeShard::Handle(TEvSchemeShard::TEvLogin::TPtr &ev, const TActorContex
7304
7304
}
7305
7305
7306
7306
void TSchemeShard::Handle (TEvTxProxySchemeCache::TEvNavigateKeySetResult::TPtr& ev, const TActorContext&) {
7307
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7308
+ " Handle TEvTxProxySchemeCache::TEvNavigateKeySetResult"
7309
+ << " , at schemeshard: " << TabletID ());
7310
+
7307
7311
using TNavigate = NSchemeCache::TSchemeCacheNavigate;
7308
7312
std::unique_ptr<TNavigate> request (ev->Get ()->Request .Release ());
7309
7313
if (request->ResultSet .size () != 1 ) {
@@ -7316,12 +7320,18 @@ void TSchemeShard::Handle(TEvTxProxySchemeCache::TEvNavigateKeySetResult::TPtr&
7316
7320
7317
7321
if (entry.DomainInfo ->Params .HasStatisticsAggregator ()) {
7318
7322
StatisticsAggregatorId = TTabletId (entry.DomainInfo ->Params .GetStatisticsAggregator ());
7323
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7324
+ " Handle TEvTxProxySchemeCache::TEvNavigateKeySetResult, StatisticsAggregatorId=" << StatisticsAggregatorId
7325
+ << " , at schemeshard: " << TabletID ());
7319
7326
ConnectToSA ();
7320
7327
}
7321
7328
}
7322
7329
7323
7330
void TSchemeShard::Handle (TEvPrivate::TEvSendBaseStatsToSA::TPtr&, const TActorContext& ctx) {
7324
7331
TDuration delta = SendBaseStatsToSA ();
7332
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7333
+ " Schedule next SendBaseStatsToSA in " << delta
7334
+ << " , at schemeshard: " << TabletID ());
7325
7335
ctx.Schedule (delta, new TEvPrivate::TEvSendBaseStatsToSA ());
7326
7336
}
7327
7337
@@ -7346,12 +7356,21 @@ void TSchemeShard::ResolveSA() {
7346
7356
Send (MakeSchemeCacheID (), new TEvTxProxySchemeCache::TEvNavigateKeySet (navigate.release ()));
7347
7357
} else {
7348
7358
StatisticsAggregatorId = subDomainInfo->GetTenantStatisticsAggregatorID ();
7359
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7360
+ " ResolveSA(), StatisticsAggregatorId=" << StatisticsAggregatorId
7361
+ << " , at schemeshard: " << TabletID ());
7349
7362
ConnectToSA ();
7350
7363
}
7351
7364
}
7352
7365
7353
7366
void TSchemeShard::ConnectToSA () {
7354
- if (!EnableStatistics || !StatisticsAggregatorId) {
7367
+ if (!EnableStatistics)
7368
+ return ;
7369
+
7370
+ if (!StatisticsAggregatorId) {
7371
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7372
+ " ConnectToSA(), no StatisticsAggregatorId"
7373
+ << " , at schemeshard: " << TabletID ());
7355
7374
return ;
7356
7375
}
7357
7376
auto policy = NTabletPipe::TClientRetryPolicy::WithRetries ();
@@ -7366,7 +7385,10 @@ void TSchemeShard::ConnectToSA() {
7366
7385
LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7367
7386
" ConnectToSA()"
7368
7387
<< " , pipe client id: " << SAPipeClientId
7369
- << " , at schemeshard: " << TabletID ());
7388
+ << " , at schemeshard: " << TabletID ()
7389
+ << " , StatisticsAggregatorId: " << StatisticsAggregatorId
7390
+ << " , at schemeshard: " << TabletID ()
7391
+ );
7370
7392
}
7371
7393
7372
7394
TDuration TSchemeShard::SendBaseStatsToSA () {
@@ -7377,7 +7399,14 @@ TDuration TSchemeShard::SendBaseStatsToSA() {
7377
7399
if (!SAPipeClientId) {
7378
7400
ResolveSA ();
7379
7401
if (!StatisticsAggregatorId) {
7402
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7403
+ " SendBaseStatsToSA(), no StatisticsAggregatorId"
7404
+ << " , at schemeshard: " << TabletID ());
7380
7405
return TDuration::Seconds (30 );
7406
+ } else {
7407
+ LOG_DEBUG_S (TlsActivationContext->AsActorContext (), NKikimrServices::STATISTICS,
7408
+ " SendBaseStatsToSA(), StatisticsAggregatorId=" << StatisticsAggregatorId
7409
+ << " , at schemeshard: " << TabletID ());
7381
7410
}
7382
7411
}
7383
7412
0 commit comments