FrankChen021 commented on code in PR #13087:
URL: https://github.com/apache/druid/pull/13087#discussion_r990616037
##########
server/src/main/java/org/apache/druid/curator/CuratorModule.java:
##########
@@ -96,7 +98,26 @@ public CuratorFramework makeCurator(ZkEnablementConfig
zkEnablementConfig, Curat
final CuratorFramework framework = createCurator(config);
framework.getUnhandledErrorListenable().addListener((message, e) -> {
+ final long startTime = System.currentTimeMillis();
log.error(e, "Unhandled error in Curator, stopping server.");
+ final Thread halter = new Thread(
+ () -> {
+ try {
+ Threads.sleepFor(30, TimeUnit.SECONDS);
+ }
+ catch (InterruptedException ex) {
Review Comment:
```suggestion
catch (InterruptedException ignored) {
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]