File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,17 @@ class TSchedulableComputeActorBase : public NYql::NDq::TDqSyncComputeActorBase<T
171171 }
172172
173173 void DoBoostrap () {
174- TlsActivationContext->AsActorContext ().Mailbox .EnableStats ();
174+ if (!SelfHandle.Defined ()) {
175+ return ;
176+ }
177+
175178 OldActivationStats = TlsActivationContext->AsActorContext ().Mailbox .GetElapsedCycles ();
176- Y_ABORT_UNLESS ( OldActivationStats.has_value ());
177- if (*OldActivationStats > 0 ) {
178- CA_LOG_E ( " strange leftover activation " << OldActivationStats);
179+ if (! OldActivationStats.has_value ()) {
180+ TlsActivationContext-> AsActorContext (). Mailbox . EnableStats ();
181+ OldActivationStats = TlsActivationContext-> AsActorContext (). Mailbox . GetElapsedCycles ();
179182 }
183+
184+ Y_ABORT_UNLESS (OldActivationStats.has_value ());
180185 }
181186
182187private:
@@ -240,6 +245,10 @@ class TSchedulableComputeActorBase : public NYql::NDq::TDqSyncComputeActorBase<T
240245 }
241246
242247 void AccountActorSystemStats (NMonotonic::TMonotonic now) {
248+ if (!SelfHandle.Defined ()) {
249+ return ;
250+ }
251+
243252 auto newStats = TlsActivationContext->AsActorContext ().Mailbox .GetElapsedCycles ();
244253 Y_ABORT_UNLESS (OldActivationStats.has_value ());
245254 Y_ABORT_UNLESS (newStats.has_value ());
You can’t perform that action at this time.
0 commit comments