-
Notifications
You must be signed in to change notification settings - Fork 93
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/ClusterInitializer.java
@ParameterizedTest(name = ParameterizedTest.INDEX_PLACEHOLDER + " positiveLogicalTopologyJoinTest: {0}") | ||
@Timeout(5) | ||
@MethodSource("positiveClusterBehaviour") | ||
void positiveLogicalTopologyJoinTest( |
There was a problem hiding this comment.
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) -> { |
There was a problem hiding this comment.
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();
https://issues.apache.org/jira/browse/IGNITE-23406