You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Takumi Yoshida <ta...@yahoo-corp.jp> on 2018/07/17 06:38:48 UTC

How to handle RuntimeException in

Hi, all

I wounder if anyone know how to handle RuntimeException in a Listener which was selected by LeaderSelector. Even if I use LeaderSelector with ExecutorService which uses UncaughtExceptionHandler, my Listener thread died saliently when a RuntimeException was throwed without any logs or messages.

Sample code here.
https://gist.github.com/yoshi0309/36a58d6c2130057d649f8197e93309ea

Does anyone know how to handle RuntimeException in a Listener? Or do I need to cat all of the Exception on top of the Listener?

Thanks,
Takumi Yoshida