Closed apanasevich closed 3 months ago
@apanasevich can you provide a reproducer for this or add a test demonstrating where this is useful ?
Hi @vietj
I cannot reproduce a bug. The problem occures when clusterManager.getNodes();
contains a node, but clusterMap.get(node);
do not yet. And this case is covered with timered check in method checkQuorumWhenAdded
, but not covered on init
.
List<String> nodes = clusterManager.getNodes();
int count = 0;
for (String node : nodes) {
String json = clusterMap.get(node);
I'll try to write a test covering the issue.
I've written the test with a special ClusterManager
emulating the issue behaviour. It does not call nodeAdded
listerens that looks like cluster was created before Vert.x
initiates HAManager
.
Please take a look at the PR again.
thanks @apanasevich
NetTest.testSocketAddress
timed out. But this test does not use HA feature and even does not deploy a verticle.
@apanasevich there are some flaky tests, I reran the CI
Fixes #5272
The key idea is to wait until
clusterMap
get information from other nodes like it done innodeAdded
method.