Skip to content

Commit

Permalink
nasty hack to see more issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed May 23, 2024
1 parent a7b6a85 commit 41c54e1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1964,8 +1964,13 @@ protected boolean blockingAllowed() {
|| super.blockingAllowed();
}
};
CountDownLatch latch = new CountDownLatch(1);
drainOnCloseListener.addListener(future);
drainOnCloseListener.addListener(ActionListener.releasing(latch::countDown));
try {
// todo: hack to circumvent same executor check here to see if more failures appear.
// need to make this method async, which includes making engine close async, which we should be able to do now.
latch.await();
future.get();
return true;
} catch (ExecutionException e) {
Expand Down

0 comments on commit 41c54e1

Please sign in to comment.