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-8650: ZookeeperDiscovery testClientReconnect is flaky in master #4704

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ private void reconnectMultinode(boolean longHist) throws Exception {

ClusterGroup grp = client.cluster().forCacheNodes(DEFAULT_CACHE_NAME);

assertEquals(CLIENTS + srvNodes, grp.nodes().size());
assertEquals(expNodes, grp.nodes().size());

grp = client.cluster().forClientNodes(DEFAULT_CACHE_NAME);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,9 @@ private void checkClientsStatus(final List<String> aliveNodes) throws Exception
}
}

assert !aliveClients.isEmpty();
// This situation may appear while reconnection and this callback can be skipped.
if(!aliveClients.containsKey(locInternalOrder))
return;

Map.Entry<Long, String> oldest = aliveClients.firstEntry();

Expand Down