@@ -180,7 +180,9 @@ TPartitionStats TTxStoreTableStats::PrepareStats(const TActorContext& ctx, const
180
180
return newStats;
181
181
}
182
182
183
- bool TTxStoreTableStats::PersistSingleStats (const TPathId& pathId, const TStatsQueueItem<TEvDataShard::TEvPeriodicTableStats>& item, NTabletFlatExecutor::TTransactionContext& txc, const TActorContext& ctx) {
183
+ bool TTxStoreTableStats::PersistSingleStats (const TPathId& pathId,
184
+ const TStatsQueueItem<TEvDataShard::TEvPeriodicTableStats>& item,
185
+ NTabletFlatExecutor::TTransactionContext& txc, const TActorContext& ctx) {
184
186
const auto & rec = item.Ev ->Get ()->Record ;
185
187
const auto datashardId = TTabletId (rec.GetDatashardId ());
186
188
@@ -205,19 +207,17 @@ bool TTxStoreTableStats::PersistSingleStats(const TPathId& pathId, const TStatsQ
205
207
TShardIdx shardIdx = Self->TabletIdToShardIdx [datashardId];
206
208
207
209
LOG_DEBUG_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
208
- " TTxStoreTableStats.PersistSingleStats: main stats from"
209
- << " datashardId(TabletID)=" << datashardId
210
- << " maps to shardIdx: " << shardIdx
211
- << " , pathId: " << pathId
212
- << " , pathId map=" << Self->PathsById [pathId]->Name
213
- << " , is column=" << isColumnTable
214
- << " , is olap=" << isOlapStore);
210
+ " TTxStoreTableStats.PersistSingleStats: main stats from"
211
+ << " datashardId(TabletID)=" << datashardId << " maps to shardIdx: " << shardIdx
212
+ << " , pathId: " << pathId << " , pathId map=" << Self->PathsById [pathId]->Name
213
+ << " , is column=" << isColumnTable << " , is olap=" << isOlapStore);
215
214
216
215
const TPartitionStats newStats = PrepareStats (ctx, rec);
217
216
218
217
LOG_INFO_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
219
- " Add stats from shard with datashardId(TabletID)=" << datashardId << " , pathId " << pathId.LocalPathId
220
- << " : RowCount " << newStats.RowCount << " , DataSize " << newStats.DataSize );
218
+ " Add stats from shard with datashardId(TabletID)=" << datashardId << " , pathId " << pathId.LocalPathId
219
+ << " : RowCount " << newStats.RowCount << " , DataSize "
220
+ << newStats.DataSize );
221
221
222
222
NIceDb::TNiceDb db (txc.DB );
223
223
@@ -266,18 +266,20 @@ bool TTxStoreTableStats::PersistSingleStats(const TPathId& pathId, const TStatsQ
266
266
const TPathId tablePathId = TPathId (TOwnerId (pathId.OwnerId ), TLocalPathId (table.GetTableLocalId ()));
267
267
268
268
if (Self->ColumnTables .contains (tablePathId)) {
269
- LOG_DEBUG_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, " add stats for exists table with pathId=" << tablePathId);
269
+ LOG_DEBUG_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
270
+ " add stats for exists table with pathId=" << tablePathId);
270
271
271
272
auto columnTable = Self->ColumnTables .TakeVerified (tablePathId);
272
273
columnTable->UpdateTableStats (tablePathId, newTableStats);
273
274
} else {
274
- LOG_WARN_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, " failed add stats for table with pathId=" << tablePathId);
275
+ LOG_WARN_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
276
+ " failed add stats for table with pathId=" << tablePathId);
275
277
}
276
278
}
277
279
278
280
} else if (isColumnTable) {
279
- LOG_INFO_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, " PersistSingleStats: ColumnTable rec.GetColumnTables() size= "
280
- << rec.GetTables ().size ());
281
+ LOG_INFO_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
282
+ " PersistSingleStats: ColumnTable rec.GetColumnTables() size= " << rec.GetTables ().size ());
281
283
282
284
auto columnTable = Self->ColumnTables .TakeVerified (pathId);
283
285
oldAggrStats = columnTable->GetStats ().Aggregated ;
0 commit comments