Skip to content

Commit 139af72

Browse files
authored
[grid] Exclude status DRAINING when distributor getting available nodes (#14282)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 48ebf7d commit 139af72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ protected Set<NodeStatus> getAvailableNodes() {
505505
readLock.lock();
506506
try {
507507
return model.getSnapshot().stream()
508-
.filter(node -> !DOWN.equals(node.getAvailability()))
508+
.filter(
509+
node ->
510+
!DOWN.equals(node.getAvailability()) && !DRAINING.equals(node.getAvailability()))
509511
.collect(toImmutableSet());
510512
} finally {
511513
readLock.unlock();

0 commit comments

Comments
 (0)