-
Notifications
You must be signed in to change notification settings - Fork 556
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
[Backport stable/8.0] Only check that the topology reports all replicas #10084
Merged
Commits on Aug 16, 2022
-
feat(test-util): backport TopologyAssert and tests
Backports the expanded TopologyAssert from the main branch to stable/8.0, as well as its tests.
Configuration menu - View commit details
-
Copy full SHA for c369558 - Browse repository at this point
Copy the full SHA c369558View commit details -
test(qa): only check that the topology reports all replicas
Instead of using the helper `isComplete`, manually check that the topology contains all replicas, omitting the check for the partition health. While this would be safer, there is a race condition where the partitions may be unhealthy for a short time on start up. For this test, we only really want to check that the nodes find each other, not that processing works, as it should be largely unaffected.
Configuration menu - View commit details
-
Copy full SHA for 05539f7 - Browse repository at this point
Copy the full SHA 05539f7View commit details -
The IPv6 test is sometimes flaky because it may take a while for a full cluster to start: 3 brokers and one gateway. To test IPv6, however, we don't really need so many nodes, and having 1 broker and 1 gateway is enough: all ports are tested properly (except the management port, which is tested already by Spring). Additionally, this fixes that if the test fails once, the network may not be removed properly afterwards, which causes further iterations to fail. We ensure the network is closed here, and also we print out a proper error if we fail to start the network on the next run. Finally I took the time to clean up the test using new APIs provided by zeebe-test-container.
Configuration menu - View commit details
-
Copy full SHA for a95f31d - Browse repository at this point
Copy the full SHA a95f31dView commit details -
test: let embedded broker rule wait for healthy leader
Previously, the rule only waited for a leader of partition 1 before returning from `startBroker`. With this change, the leader must also report as healthy. This is intended to fix some flaky tests where after the startup, commands send to the leader of partition 1 failed because no command-api handler was registered. Since registration of handlers is required for a healthy status, this should hopefully prevent these kinds of flaky tests.
Configuration menu - View commit details
-
Copy full SHA for 80f5eea - Browse repository at this point
Copy the full SHA 80f5eeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72065d2 - Browse repository at this point
Copy the full SHA 72065d2View commit details -
refactor(qa): fix flakiness on startup of ClusterRule
The `ClusterRule` uses the topology to figure out if the cluster is ready before a test starts. There was a flaky condition where it might start when all partitions are present, but before they are healthy. This change was pulled from #9502 - however in that PR, it was only done in the broker module's `EmbeddedBrokerRule`. At the same time, the rule is updated such that everywhere it was waiting for the topology, now also uses `TopologyAssert`.
Configuration menu - View commit details
-
Copy full SHA for af34d1f - Browse repository at this point
Copy the full SHA af34d1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f01b41 - Browse repository at this point
Copy the full SHA 0f01b41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fe3bb1 - Browse repository at this point
Copy the full SHA 3fe3bb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0da5eff - Browse repository at this point
Copy the full SHA 0da5effView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.