You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ibessonov (via GitHub)" <gi...@apache.org> on 2023/02/15 14:30:30 UTC
[GitHub] [ignite-3] ibessonov commented on a diff in pull request #1679: IGNITE-18795 Reduce the number of Logical Topology updates
ibessonov commented on code in PR #1679:
URL: https://github.com/apache/ignite-3/pull/1679#discussion_r1107200012
##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterManagementGroupManager.java:
##########
@@ -594,21 +595,33 @@ private void sendClusterState(CmgRaftService raftService, ClusterNode node) {
}
private void sendClusterState(CmgRaftService raftService, Collection<ClusterNode> nodes) {
- raftService.readClusterState()
- .thenAccept(state -> {
- // Raft state might not have been initialized in case of leader failure during cluster init
- // TODO: properly handle this case, see https://issues.apache.org/jira/browse/IGNITE-16819
- if (state == null) {
- throw new IllegalStateException("Cluster state is empty");
+ raftService.logicalTopology()
+ .thenCompose(topology -> {
+ // Only send the ClusterStateMessage to nodes not already present in the Logical Topology.
Review Comment:
But why? I don't understand the situation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org