Skip to content

Commit

Permalink
change compareAndSet to set
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Nov 25, 2024
1 parent 266d3fa commit 1df7947
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private void checkDownstreamTaskBeforeDeleteModel(String modelId, Boolean isHidd
}
}, e -> {
countDownLatch.countDown();
noneBlocked.compareAndSet(true, false);
noneBlocked.set(false);
errorMessages.add(e.getMessage());
if (countDownLatch.getCount() == 0) {
actionListener.onFailure(new OpenSearchStatusException(String.join(". ", errorMessages), RestStatus.CONFLICT));
Expand Down

0 comments on commit 1df7947

Please sign in to comment.