Skip to content

Commit

Permalink
Enable not same executor assertion (elastic#109088)
Browse files Browse the repository at this point in the history
Enable the assertion introduced in elastic#108934
  • Loading branch information
henningandersen authored and craigtaverner committed Jun 11, 2024
1 parent fc61326 commit 72f325b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@ public static <T, E extends Exception> T get(CheckedConsumer<PlainActionFuture<T

private boolean assertCompleteAllowed() {
Thread waiter = sync.getFirstQueuedThread();
// todo: reenable assertion once downstream code is updated
assert true || waiter == null || allowedExecutors(waiter, Thread.currentThread())
assert waiter == null || allowedExecutors(waiter, Thread.currentThread())
: "cannot complete future on thread "
+ Thread.currentThread()
+ " with waiter on thread "
Expand Down

0 comments on commit 72f325b

Please sign in to comment.