Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-23406 Change semantic of cluster init REST call #4621

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dant3
Copy link
Contributor

@dant3 dant3 commented Oct 23, 2024

@dant3 dant3 marked this pull request as draft October 23, 2024 17:51
# Conflicts:
#	modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterInitializer.java
@dant3 dant3 marked this pull request as ready for review October 25, 2024 13:39
@ParameterizedTest(name = ParameterizedTest.INDEX_PLACEHOLDER + " positiveLogicalTopologyJoinTest: {0}")
@Timeout(5)
@MethodSource("positiveClusterBehaviour")
void positiveLogicalTopologyJoinTest(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

negative test would be nice here as well

logicalTopology.putNode(logical(node3));
logicalTopology.putNode(logical(node4));
}),
simulation("3 nodes join logical topology and node4 leaves physical topology", (physicalTopology, logicalTopology) -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This simulation makes logical topology to be equal to the physical eventually. You assert the await future is done eventually. But you do not test the future state during the topology changes. I would like to see asserts on the future after each topology node, for example:

logicalTopology.putNode(logical(node1));
assertFutureIsNotCompleted();
logicalTopology.putNode(logical(node2));
assertFutureIsNotCompleted();
logicalTopology.putNode(logical(node3));
assertFutureIsNotCompleted();
logicalTopology.putNode(logical(node4));
assertFutureCompleted();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants