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 and sandeepsuryaprasad committed Oct 29, 2024
1 parent c4f2f2e commit 39bd63b
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 39bd63b

Please sign in to comment.