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

[grid] retry if no node does support the Capabilities #14986

Merged
merged 7 commits into from
Jan 1, 2025
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ public Either<SessionNotCreatedException, CreateSessionResponse> newSession(
new SessionNotCreatedException("Unable to create new session");
for (Capabilities caps : request.getDesiredCapabilities()) {
if (isNotSupported(caps)) {
// e.g. the last node drained, we have to wait for a new to register
lastFailure =
new SessionNotCreatedException(
"Unable to find a node supporting the desired capabilities");
retry = true;
continue;
}

Expand Down
Loading