@@ -396,10 +396,12 @@ 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- }
399+
400+ // skip because of LOGBROKER-8792
401+ // if (Count(Clusters, config.GetDC()) == 0 && !Clusters.empty()) {
402+ // Request_->RaiseIssue(FillIssue(TStringBuilder() << "Unknown cluster '" << config.GetDC() << "'", Ydb::PersQueue::ErrorCode::BAD_REQUEST));
403+ // return RespondWithCode(Ydb::StatusIds::BAD_REQUEST);
404+ // }
403405}
404406
405407
@@ -596,7 +598,7 @@ void TDescribeTopicActorImpl::Handle(TEvPQProxy::TEvRequestTablet::TPtr& ev, con
596598 Y_ABORT_UNLESS (RequestsInfly > 0 );
597599 --RequestsInfly;
598600 }
599-
601+
600602 RequestTablet (tabletInfo, ctx);
601603}
602604
@@ -635,7 +637,7 @@ void TDescribeTopicActorImpl::RequestBalancer(const TActorContext& ctx) {
635637 GotLocation = true ;
636638 }
637639
638- if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
640+ if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
639641 if (!GotReadSessions) {
640642 RequestReadSessionsInfo (ctx);
641643 }
@@ -671,7 +673,7 @@ void TDescribeTopicActorImpl::RequestPartitionsLocation(const TActorContext& ctx
671673 return RaiseError (
672674 TStringBuilder () << " No partition " << Settings.Partitions [0 ] << " in topic" ,
673675 Ydb::PersQueue::ErrorCode::BAD_REQUEST, Ydb::StatusIds::BAD_REQUEST, ctx
674- );
676+ );
675677 }
676678 auto res = partIds.insert (p);
677679 if (res.second ) {
@@ -705,7 +707,7 @@ void TDescribeTopicActorImpl::Handle(NKikimr::TEvPersQueue::TEvStatusResponse::T
705707
706708 auto & record = ev->Get ()->Record ;
707709 bool doRestart = (record.PartResultSize () == 0 );
708-
710+
709711 for (auto & partResult : record.GetPartResult ()) {
710712 if (partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_INITIALIZING ||
711713 partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_UNKNOWN) {
@@ -917,7 +919,7 @@ bool TDescribeTopicActor::ApplyResponse(
917919 }
918920 return true ;
919921}
920-
922+
921923
922924
923925void TDescribeTopicActor::Reply (const TActorContext& ctx) {
@@ -1030,7 +1032,7 @@ bool TDescribeConsumerActor::ApplyResponse(
10301032 }
10311033 return true ;
10321034}
1033-
1035+
10341036
10351037bool FillConsumerProto (Ydb::Topic::Consumer *rr, const NKikimrPQ::TPQTabletConfig& config, ui32 i,
10361038 const NActors::TActorContext& ctx, Ydb::StatusIds::StatusCode& status, TString& error)
@@ -1272,11 +1274,11 @@ bool TDescribeTopicActorImpl::ProcessTablets(
12721274 Tablets[pi.GetTabletId ()].Partitions .push_back (pi.GetPartitionId ());
12731275 Tablets[pi.GetTabletId ()].TabletId = pi.GetTabletId ();
12741276 }
1275-
1277+
12761278 for (auto & pair : Tablets) {
12771279 RequestTablet (pair.second , ctx);
12781280 }
1279-
1281+
12801282 if (RequestsInfly == 0 ) {
12811283 Reply (ctx);
12821284 return false ;
@@ -1332,7 +1334,7 @@ void TDescribePartitionActor::Bootstrap(const NActors::TActorContext& ctx)
13321334
13331335void TDescribePartitionActor::StateWork (TAutoPtr<IEventHandle>& ev) {
13341336 switch (ev->GetTypeRewrite ()) {
1335- default :
1337+ default :
13361338 if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
13371339 TBase::StateWork (ev);
13381340 };
@@ -1359,12 +1361,12 @@ void TDescribePartitionActor::ApplyResponse(TTabletInfo&, NKikimr::TEvPersQueue:
13591361
13601362void TDescribePartitionActor::ApplyResponse (TTabletInfo& tabletInfo, NKikimr::TEvPersQueue::TEvStatusResponse::TPtr& ev, const TActorContext&) {
13611363 auto * partResult = Result.mutable_partition ();
1362-
1364+
13631365 const auto & record = ev->Get ()->Record ;
13641366 for (auto partData : record.GetPartResult ()) {
13651367 if ((ui32)partData.GetPartition () != Settings.Partitions [0 ])
13661368 continue ;
1367-
1369+
13681370 Y_ABORT_UNLESS ((ui32)(partData.GetPartition ()) == Settings.Partitions [0 ]);
13691371 partResult->set_partition_id (partData.GetPartition ());
13701372 partResult->set_active (true );
@@ -1411,7 +1413,7 @@ void TDescribePartitionActor::Reply(const TActorContext& ctx) {
14111413
14121414using namespace NIcNodeCache ;
14131415
1414- TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
1416+ TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
14151417 : TBase(request, requester)
14161418 , TDescribeTopicActorImpl(TDescribeTopicActorSettings::GetPartitionsLocation(request.PartitionIds))
14171419{
@@ -1429,7 +1431,7 @@ void TPartitionsLocationActor::Bootstrap(const NActors::TActorContext&)
14291431void TPartitionsLocationActor::StateWork (TAutoPtr<IEventHandle>& ev) {
14301432 switch (ev->GetTypeRewrite ()) {
14311433 hFunc (TEvICNodesInfoCache::TEvGetAllNodesInfoResponse, Handle);
1432- default :
1434+ default :
14331435 if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
14341436 TBase::StateWork (ev);
14351437 };
0 commit comments