Skip to content

Commit

Permalink
[grid] Exclude status DRAINING when distributor getting available nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jul 19, 2024
1 parent 5761c71 commit 898bfde
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 898bfde

Please sign in to comment.