@@ -625,7 +625,7 @@ void TPersQueue::CreateOriginalPartition(const NKikimrPQ::TPQTabletConfig& confi
625
625
bool newPartition,
626
626
const TActorContext& ctx)
627
627
{
628
- TActorId actorId = ctx.Register (CreatePartitionActor (partitionId,
628
+ TActorId actorId = ctx.RegisterWithSameMailbox (CreatePartitionActor (partitionId,
629
629
topicConverter,
630
630
config,
631
631
newPartition,
@@ -689,7 +689,7 @@ void TPersQueue::CreateSupportivePartitionActor(const TPartitionId& partitionId,
689
689
PQ_ENSURE (Partitions.contains (partitionId));
690
690
691
691
TPartitionInfo& partition = Partitions.at (partitionId);
692
- partition.Actor = ctx.Register (CreatePartitionActor (partitionId,
692
+ partition.Actor = ctx.RegisterWithSameMailbox (CreatePartitionActor (partitionId,
693
693
TopicConverter,
694
694
MakeSupportivePartitionConfig (),
695
695
false ,
@@ -2595,7 +2595,7 @@ void TPersQueue::Handle(TEvPersQueue::TEvRequest::TPtr& ev, const TActorContext&
2595
2595
directKey.PartitionSessionId = pipeIter->second .PartitionSessionId ;
2596
2596
}
2597
2597
TStringBuilder log; log << " PQ - create read proxy" << Endl;
2598
- TActorId rr = ctx.Register (CreateReadProxy (ev->Sender , TabletID (), ctx.SelfID , GetGeneration (), directKey, request));
2598
+ TActorId rr = ctx.RegisterWithSameMailbox (CreateReadProxy (ev->Sender , TabletID (), ctx.SelfID , GetGeneration (), directKey, request));
2599
2599
ans = CreateResponseProxy (rr, ctx.SelfID , TopicName, p, m, s, c, ResourceMetrics, ctx);
2600
2600
} else {
2601
2601
ans = CreateResponseProxy (ev->Sender , ctx.SelfID , TopicName, p, m, s, c, ResourceMetrics, ctx);
@@ -2871,7 +2871,6 @@ TPersQueue::TPersQueue(const TActorId& tablet, TTabletStorageInfo *info)
2871
2871
, OriginalPartitionsCount(0 )
2872
2872
, NewConfigShouldBeApplied(false )
2873
2873
, TabletState(NKikimrPQ::ENormal)
2874
- , Counters(nullptr )
2875
2874
, NextResponseCookie(0 )
2876
2875
, ResourceMetrics(nullptr )
2877
2876
{
@@ -2890,8 +2889,9 @@ TPersQueue::TPersQueue(const TActorId& tablet, TTabletStorageInfo *info)
2890
2889
ECumulativeCounters_descriptor,
2891
2890
EPercentileCounters_descriptor> TPersQueueCounters;
2892
2891
typedef TProtobufTabletCountersPair<TKeyValueCounters, TPersQueueCounters> TCounters;
2892
+
2893
2893
TAutoPtr<TCounters> counters (new TCounters ());
2894
- Counters = (counters->GetSecondTabletCounters ()) .Release ();
2894
+ Counters. reset (counters->GetSecondTabletCounters ().Release () );
2895
2895
2896
2896
State.SetupTabletCounters (counters->GetFirstTabletCounters ().Release ()); // FirstTabletCounters is of good type and contains all counters
2897
2897
State.Clear ();
@@ -2900,7 +2900,7 @@ TPersQueue::TPersQueue(const TActorId& tablet, TTabletStorageInfo *info)
2900
2900
void TPersQueue::CreatedHook (const TActorContext& ctx)
2901
2901
{
2902
2902
IsServerless = AppData (ctx)->FeatureFlags .GetEnableDbCounters (); // TODO: find out it via describe
2903
- CacheActor = ctx.Register (new TPQCacheProxy (ctx.SelfID , TabletID ()));
2903
+ CacheActor = ctx.RegisterWithSameMailbox (new TPQCacheProxy (ctx.SelfID , TabletID ()));
2904
2904
2905
2905
SamplingControl = AppData (ctx)->TracingConfigurator ->GetControl ();
2906
2906
@@ -4751,14 +4751,14 @@ TActorId TPersQueue::GetPartitionQuoter(const TPartitionId& partition) {
4751
4751
4752
4752
auto & quoterId = PartitionWriteQuoters[partition.OriginalPartitionId ];
4753
4753
if (!quoterId) {
4754
- quoterId = Register (new TWriteQuoter (
4754
+ quoterId = RegisterWithSameMailbox (new TWriteQuoter (
4755
4755
TopicConverter,
4756
4756
Config,
4757
4757
AppData ()->PQConfig ,
4758
4758
partition,
4759
4759
SelfId (),
4760
4760
TabletID (),
4761
- * Counters
4761
+ Counters
4762
4762
));
4763
4763
}
4764
4764
return quoterId;
@@ -4782,7 +4782,7 @@ IActor* TPersQueue::CreatePartitionActor(const TPartitionId& partitionId,
4782
4782
DCId,
4783
4783
IsServerless,
4784
4784
config,
4785
- * Counters,
4785
+ Counters,
4786
4786
SubDomainOutOfSpace,
4787
4787
(ui32)channels,
4788
4788
GetPartitionQuoter (partitionId),
0 commit comments