Skip to content

Commit ce17c46

Browse files
committed
TMP Debugging
1 parent 3cbf4f4 commit ce17c46

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/groups/mqb/mqbblp/mqbblp_clusterorchestrator.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@ void ClusterOrchestrator::processNodeStatusAdvisory(
10811081
// may see that heartbeat after the first advisory.
10821082

10831083
bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1084-
mqbc::ClusterUtil::loadPartitionsInfo(&partitions,
1085-
*clusterState());
1084+
d_stateManager_mp->assignPartitions(
1085+
&partitions); // Should be no-op, but doesn't hurt
10861086
d_stateManager_mp->sendClusterState(
10871087
true, // sendPartitionPrimaryInfo
10881088
true, // sendQueuesInfo
@@ -1194,8 +1194,8 @@ void ClusterOrchestrator::processNodeStateChangeEvent(
11941194
<< node->nodeDescription();
11951195

11961196
bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1197-
mqbc::ClusterUtil::loadPartitionsInfo(&partitions,
1198-
*clusterState());
1197+
d_stateManager_mp->assignPartitions(
1198+
&partitions); // Should be no-op, but doesn't hurt
11991199
d_stateManager_mp->sendClusterState(
12001200
true, // sendPartitionPrimaryInfo
12011201
true, // sendQueuesInfo
@@ -1807,8 +1807,10 @@ void ClusterOrchestrator::processLeaderPassiveNotification(
18071807
}
18081808

18091809
// Self is an ACTIVE leader - broadcast 'LeaaderAdvisory'
1810+
// TODO Can just assign here; you will get same results
18101811
bsl::vector<bmqp_ctrlmsg::PartitionPrimaryInfo> partitions;
1811-
mqbc::ClusterUtil::loadPartitionsInfo(&partitions, *clusterState());
1812+
d_stateManager_mp->assignPartitions(
1813+
&partitions); // Should be no-op, but doesn't hurt
18121814
d_stateManager_mp->sendClusterState(true, // sendPartitionPrimaryInfo
18131815
true, // sendQueuesInfo
18141816
0,

src/groups/mqb/mqbc/mqbc_clusterutil.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,13 @@ void ClusterUtil::sendClusterState(
14401440

14411441
advisory.partitions() = partitions;
14421442
loadQueuesInfo(&advisory.queues(), clusterState);
1443+
1444+
/** TODO comment */
1445+
if (!clusterData->clusterConfig()
1446+
.clusterAttributes()
1447+
.isFSMWorkflow()) {
1448+
// TODO
1449+
}
14431450
}
14441451
else if (sendPartitionPrimaryInfo) {
14451452
bmqp_ctrlmsg::PartitionPrimaryAdvisory& advisory =

0 commit comments

Comments
 (0)