@@ -396,10 +396,6 @@ void TCreateTopicActor::FillProposeRequest(TEvTxUserProxy::TEvProposeTransaction
396
396
<< " ' instead of " << LocalCluster, Ydb::PersQueue::ErrorCode::BAD_REQUEST));
397
397
return RespondWithCode (Ydb::StatusIds::BAD_REQUEST);
398
398
}
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
- }
403
399
}
404
400
405
401
@@ -596,7 +592,7 @@ void TDescribeTopicActorImpl::Handle(TEvPQProxy::TEvRequestTablet::TPtr& ev, con
596
592
Y_ABORT_UNLESS (RequestsInfly > 0 );
597
593
--RequestsInfly;
598
594
}
599
-
595
+
600
596
RequestTablet (tabletInfo, ctx);
601
597
}
602
598
@@ -635,7 +631,7 @@ void TDescribeTopicActorImpl::RequestBalancer(const TActorContext& ctx) {
635
631
GotLocation = true ;
636
632
}
637
633
638
- if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
634
+ if (Settings.Mode == TDescribeTopicActorSettings::EMode::DescribeConsumer && Settings.RequireStats ) {
639
635
if (!GotReadSessions) {
640
636
RequestReadSessionsInfo (ctx);
641
637
}
@@ -671,7 +667,7 @@ void TDescribeTopicActorImpl::RequestPartitionsLocation(const TActorContext& ctx
671
667
return RaiseError (
672
668
TStringBuilder () << " No partition " << Settings.Partitions [0 ] << " in topic" ,
673
669
Ydb::PersQueue::ErrorCode::BAD_REQUEST, Ydb::StatusIds::BAD_REQUEST, ctx
674
- );
670
+ );
675
671
}
676
672
auto res = partIds.insert (p);
677
673
if (res.second ) {
@@ -705,7 +701,7 @@ void TDescribeTopicActorImpl::Handle(NKikimr::TEvPersQueue::TEvStatusResponse::T
705
701
706
702
auto & record = ev->Get ()->Record ;
707
703
bool doRestart = (record.PartResultSize () == 0 );
708
-
704
+
709
705
for (auto & partResult : record.GetPartResult ()) {
710
706
if (partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_INITIALIZING ||
711
707
partResult.GetStatus () == NKikimrPQ::TStatusResponse::STATUS_UNKNOWN) {
@@ -917,7 +913,7 @@ bool TDescribeTopicActor::ApplyResponse(
917
913
}
918
914
return true ;
919
915
}
920
-
916
+
921
917
922
918
923
919
void TDescribeTopicActor::Reply (const TActorContext& ctx) {
@@ -1030,7 +1026,7 @@ bool TDescribeConsumerActor::ApplyResponse(
1030
1026
}
1031
1027
return true ;
1032
1028
}
1033
-
1029
+
1034
1030
1035
1031
bool FillConsumerProto (Ydb::Topic::Consumer *rr, const NKikimrPQ::TPQTabletConfig& config, ui32 i,
1036
1032
const NActors::TActorContext& ctx, Ydb::StatusIds::StatusCode& status, TString& error)
@@ -1272,11 +1268,11 @@ bool TDescribeTopicActorImpl::ProcessTablets(
1272
1268
Tablets[pi .GetTabletId ()].Partitions .push_back (pi .GetPartitionId ());
1273
1269
Tablets[pi .GetTabletId ()].TabletId = pi .GetTabletId ();
1274
1270
}
1275
-
1271
+
1276
1272
for (auto & pair : Tablets) {
1277
1273
RequestTablet (pair.second , ctx);
1278
1274
}
1279
-
1275
+
1280
1276
if (RequestsInfly == 0 ) {
1281
1277
Reply (ctx);
1282
1278
return false ;
@@ -1332,7 +1328,7 @@ void TDescribePartitionActor::Bootstrap(const NActors::TActorContext& ctx)
1332
1328
1333
1329
void TDescribePartitionActor::StateWork (TAutoPtr<IEventHandle>& ev) {
1334
1330
switch (ev->GetTypeRewrite ()) {
1335
- default :
1331
+ default :
1336
1332
if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
1337
1333
TBase::StateWork (ev);
1338
1334
};
@@ -1359,12 +1355,12 @@ void TDescribePartitionActor::ApplyResponse(TTabletInfo&, NKikimr::TEvPersQueue:
1359
1355
1360
1356
void TDescribePartitionActor::ApplyResponse (TTabletInfo& tabletInfo, NKikimr::TEvPersQueue::TEvStatusResponse::TPtr& ev, const TActorContext&) {
1361
1357
auto * partResult = Result.mutable_partition ();
1362
-
1358
+
1363
1359
const auto & record = ev->Get ()->Record ;
1364
1360
for (auto partData : record.GetPartResult ()) {
1365
1361
if ((ui32)partData.GetPartition () != Settings.Partitions [0 ])
1366
1362
continue ;
1367
-
1363
+
1368
1364
Y_ABORT_UNLESS ((ui32)(partData.GetPartition ()) == Settings.Partitions [0 ]);
1369
1365
partResult->set_partition_id (partData.GetPartition ());
1370
1366
partResult->set_active (true );
@@ -1411,7 +1407,7 @@ void TDescribePartitionActor::Reply(const TActorContext& ctx) {
1411
1407
1412
1408
using namespace NIcNodeCache ;
1413
1409
1414
- TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
1410
+ TPartitionsLocationActor::TPartitionsLocationActor (const TGetPartitionsLocationRequest& request, const TActorId& requester)
1415
1411
: TBase(request, requester)
1416
1412
, TDescribeTopicActorImpl(TDescribeTopicActorSettings::GetPartitionsLocation(request.PartitionIds))
1417
1413
{
@@ -1429,7 +1425,7 @@ void TPartitionsLocationActor::Bootstrap(const NActors::TActorContext&)
1429
1425
void TPartitionsLocationActor::StateWork (TAutoPtr<IEventHandle>& ev) {
1430
1426
switch (ev->GetTypeRewrite ()) {
1431
1427
hFunc (TEvICNodesInfoCache::TEvGetAllNodesInfoResponse, Handle );
1432
- default :
1428
+ default :
1433
1429
if (!TDescribeTopicActorImpl::StateWork (ev, ActorContext ())) {
1434
1430
TBase::StateWork (ev);
1435
1431
};
0 commit comments