Skip to content

Commit

Permalink
[grid] Exclude status DRAINING when distributor getting available nod…
Browse files Browse the repository at this point in the history
…es (SeleniumHQ#14282)

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Jul 25, 2024
1 parent 48ebf7d commit 139af72
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ protected Set<NodeStatus> getAvailableNodes() {
readLock.lock();
try {
return model.getSnapshot().stream()
.filter(node -> !DOWN.equals(node.getAvailability()))
.filter(
node ->
!DOWN.equals(node.getAvailability()) && !DRAINING.equals(node.getAvailability()))
.collect(toImmutableSet());
} finally {
readLock.unlock();
Expand Down

0 comments on commit 139af72

Please sign in to comment.