@@ -126,8 +126,8 @@ class TTxUpdateSchema: public TTransactionBase<TColumnShard> {
126126};
127127
128128bool TTxUpdateSchema::Execute (TTransactionContext& txc, const TActorContext&) {
129- NActors::TLogContextGuard gLogging =
130- NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)( " tablet_id " , Self-> TabletID ())( " event " , " initialize_shard " );
129+ NActors::TLogContextGuard gLogging = NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)( " tablet_id " , Self-> TabletID ())(
130+ " process " , " TTxUpdateSchema::Execute " );
131131 ACFL_INFO (" step" , " TTxUpdateSchema.Execute_Start" )(" details" , Self->NormalizerController .DebugString ());
132132
133133 while (!Self->NormalizerController .IsNormalizationFinished ()) {
@@ -153,6 +153,8 @@ bool TTxUpdateSchema::Execute(TTransactionContext& txc, const TActorContext&) {
153153}
154154
155155void TTxUpdateSchema::Complete (const TActorContext& ctx) {
156+ NActors::TLogContextGuard gLogging =
157+ NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(" process" , " TTxUpdateSchema::Complete" );
156158 AFL_INFO (NKikimrServices::TX_COLUMNSHARD)(" step" , " TTxUpdateSchema.Complete" );
157159 Self->Counters .GetCSCounters ().Initialization .OnTxUpdateSchemaFinished (TMonotonic::Now () - StartInstant);
158160 if (NormalizerTasks.empty ()) {
@@ -190,26 +192,26 @@ class TTxApplyNormalizer: public TTransactionBase<TColumnShard> {
190192
191193bool TTxApplyNormalizer::Execute (TTransactionContext& txc, const TActorContext&) {
192194 NActors::TLogContextGuard gLogging =
193- NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(" event" , " initialize_shard " );
195+ NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(" event" , " TTxApplyNormalizer::Execute " );
194196 AFL_INFO (NKikimrServices::TX_COLUMNSHARD)(" step" , " TTxApplyNormalizer.Execute" )(" details" , Self->NormalizerController .DebugString ());
195197 if (!Changes->ApplyOnExecute (txc, Self->NormalizerController )) {
196198 return false ;
197199 }
198200
199- if (Self->NormalizerController .GetNormalizer ()->GetActiveTasksCount () == 1 ) {
201+ if (Self->NormalizerController .GetNormalizer ()->DecActiveCounters () == 1 ) {
200202 NIceDb::TNiceDb db (txc.DB );
201203 Self->NormalizerController .OnNormalizerFinished (db);
202204 }
203205 return true ;
204206}
205207
206208void TTxApplyNormalizer::Complete (const TActorContext& ctx) {
207- AFL_INFO (NKikimrServices::TX_COLUMNSHARD)(" step" , " TTxApplyNormalizer.Complete" )(" tablet_id" , Self->TabletID ())(" event" , " initialize_shard" );
209+ NActors::TLogContextGuard gLogging = NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(
210+ " event" , " TTxApplyNormalizer::Complete" );
208211 AFL_VERIFY (!Self->NormalizerController .IsNormalizationFinished ())(" details" , Self->NormalizerController .DebugString ());
209- AFL_WARN (NKikimrServices::TX_COLUMNSHARD)(" tablet_id " , Self-> TabletID ())( " event" , " apply_normalizer_changes" )(
212+ AFL_WARN (NKikimrServices::TX_COLUMNSHARD)(" event" , " apply_normalizer_changes" )(
210213 " details" , Self->NormalizerController .DebugString ())(" size" , Changes->GetSize ());
211214 Changes->ApplyOnComplete (Self->NormalizerController );
212- Self->NormalizerController .GetNormalizer ()->OnResultReady ();
213215 if (Self->NormalizerController .GetNormalizer ()->HasActiveTasks ()) {
214216 return ;
215217 }
@@ -240,6 +242,8 @@ class TTxInitSchema: public TTransactionBase<TColumnShard> {
240242};
241243
242244bool TTxInitSchema::Execute (TTransactionContext& txc, const TActorContext&) {
245+ NActors::TLogContextGuard gLogging = NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(
246+ " process" , " TTxInitSchema::Execute" );
243247 LOG_S_DEBUG (" TxInitSchema.Execute at tablet " << Self->TabletID ());
244248
245249 const bool isFirstRun = txc.DB .GetScheme ().IsEmpty ();
@@ -286,6 +290,8 @@ bool TTxInitSchema::Execute(TTransactionContext& txc, const TActorContext&) {
286290}
287291
288292void TTxInitSchema::Complete (const TActorContext& ctx) {
293+ NActors::TLogContextGuard gLogging =
294+ NActors::TLogContextBuilder::Build (NKikimrServices::TX_COLUMNSHARD)(" tablet_id" , Self->TabletID ())(" process" , " TTxInitSchema::Complete" );
289295 Self->Counters .GetCSCounters ().Initialization .OnTxInitSchemaFinished (TMonotonic::Now () - StartInstant);
290296 LOG_S_DEBUG (" TxInitSchema.Complete at tablet " << Self->TabletID (););
291297 Self->Execute (new TTxUpdateSchema (Self), ctx);
0 commit comments