@@ -396,10 +396,6 @@ void TCreateTopicActor::FillProposeRequest(TEvTxUserProxy::TEvProposeTransaction
396396 << " ' instead of " << LocalCluster, Ydb::PersQueue::ErrorCode::BAD_REQUEST));
397397 return RespondWithCode (Ydb::StatusIds::BAD_REQUEST);
398398 }
399- if (Count (Clusters, config.GetDC ()) == 0 && !Clusters.empty ()) {
400- Request_->RaiseIssue (FillIssue (TStringBuilder () << " Unknown cluster '" << config.GetDC () << " '" , Ydb::PersQueue::ErrorCode::BAD_REQUEST));
401- return RespondWithCode (Ydb::StatusIds::BAD_REQUEST);
402- }
403399}
404400
405401
@@ -596,7 +592,7 @@ void TDescribeTopicActorImpl::Handle(TEvPQProxy::TEvRequestTablet::TPtr& ev, con
596592 Y_ABORT_UNLESS (RequestsInfly > 0 );
597593 --RequestsInfly;
598594 }
599-
595+
600596 RequestTablet (tabletInfo, ctx);
601597}
602598
@@ -635,7 +631,7 @@ void TDescribeTopicActorImpl::RequestBalancer(const TActorContext& ctx) {
635631 GotLocation = true ;
636632 }
637633
638- if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
634+ if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
639635 if (!GotReadSessions) {
640636 RequestReadSessionsInfo (ctx);
641637 }
@@ -671,7 +667,7 @@ void TDescribeTopicActorImpl::RequestPartitionsLocation(const TActorContext& ctx
671667 return RaiseError (
672668 TStringBuilder () << " No partition " << Settings.Partitions [0 ] << " in topic" ,
673669 Ydb::PersQueue::ErrorCode::BAD_REQUEST, Ydb::StatusIds::BAD_REQUEST, ctx
674- );
670+ );
675671 }
676672 auto res = partIds.insert (p);
677673 if (res.second ) {
@@ -705,7 +701,7 @@ void TDescribeTopicActorImpl::Handle(NKikimr::TEvPersQueue::TEvStatusResponse::T
705701
706702 auto & record = ev->Get ()->Record ;
707703 bool doRestart = (record.PartResultSize () == 0 );
708-
704+
709705 for (auto & partResult : record.GetPartResult ()) {
710706 if (partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_INITIALIZING ||
711707 partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_UNKNOWN) {
@@ -917,7 +913,7 @@ bool TDescribeTopicActor::ApplyResponse(
917913 }
918914 return true ;
919915}
920-
916+
921917
922918
923919void TDescribeTopicActor::Reply (const TActorContext& ctx) {
@@ -1030,7 +1026,7 @@ bool TDescribeConsumerActor::ApplyResponse(
10301026 }
10311027 return true ;
10321028}
1033-
1029+
10341030
10351031bool FillConsumerProto (Ydb::Topic::Consumer *rr, const NKikimrPQ::TPQTabletConfig& config, ui32 i,
10361032 const NActors::TActorContext& ctx, Ydb::StatusIds::StatusCode& status, TString& error)
@@ -1272,11 +1268,11 @@ bool TDescribeTopicActorImpl::ProcessTablets(
12721268 Tablets[pi.GetTabletId ()].Partitions .push_back (pi.GetPartitionId ());
12731269 Tablets[pi.GetTabletId ()].TabletId = pi.GetTabletId ();
12741270 }
1275-
1271+
12761272 for (auto & pair : Tablets) {
12771273 RequestTablet (pair.second , ctx);
12781274 }
1279-
1275+
12801276 if (RequestsInfly == 0 ) {
12811277 Reply (ctx);
12821278 return false ;
@@ -1332,7 +1328,7 @@ void TDescribePartitionActor::Bootstrap(const NActors::TActorContext& ctx)
13321328
13331329void TDescribePartitionActor::StateWork (TAutoPtr<IEventHandle>& ev) {
13341330 switch (ev->GetTypeRewrite ()) {
1335- default :
1331+ default :
13361332 if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
13371333 TBase::StateWork (ev);
13381334 };
@@ -1359,12 +1355,12 @@ void TDescribePartitionActor::ApplyResponse(TTabletInfo&, NKikimr::TEvPersQueue:
13591355
13601356void TDescribePartitionActor::ApplyResponse (TTabletInfo& tabletInfo, NKikimr::TEvPersQueue::TEvStatusResponse::TPtr& ev, const TActorContext&) {
13611357 auto * partResult = Result.mutable_partition ();
1362-
1358+
13631359 const auto & record = ev->Get ()->Record ;
13641360 for (auto partData : record.GetPartResult ()) {
13651361 if ((ui32)partData.GetPartition () != Settings.Partitions [0 ])
13661362 continue ;
1367-
1363+
13681364 Y_ABORT_UNLESS ((ui32)(partData.GetPartition ()) == Settings.Partitions [0 ]);
13691365 partResult->set_partition_id (partData.GetPartition ());
13701366 partResult->set_active (true );
@@ -1411,7 +1407,7 @@ void TDescribePartitionActor::Reply(const TActorContext& ctx) {
14111407
14121408using namespace NIcNodeCache ;
14131409
1414- TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
1410+ TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
14151411 : TBase(request, requester)
14161412 , TDescribeTopicActorImpl(TDescribeTopicActorSettings::GetPartitionsLocation(request.PartitionIds))
14171413{
@@ -1429,7 +1425,7 @@ void TPartitionsLocationActor::Bootstrap(const NActors::TActorContext&)
14291425void TPartitionsLocationActor::StateWork (TAutoPtr<IEventHandle>& ev) {
14301426 switch (ev->GetTypeRewrite ()) {
14311427 hFunc (TEvICNodesInfoCache::TEvGetAllNodesInfoResponse, Handle);
1432- default :
1428+ default :
14331429 if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
14341430 TBase::StateWork (ev);
14351431 };
0 commit comments