You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/25 08:46:09 UTC

[GitHub] [pulsar] lhotari commented on issue #15774: CoordinationServiceImpl.close hangs and doesn't complete

lhotari commented on issue #15774:
URL: https://github.com/apache/pulsar/issues/15774#issuecomment-1136968694

   Since we are now on Java 17, it would be possible to start leveraging Java API methods that have been added since Java 8.
   
   One useful method is [`CompletableFuture.orTimeout`](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/CompletableFuture.html#orTimeout(long,java.util.concurrent.TimeUnit)) . It's a simple way to add a timeout to a Completable Future. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org