You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/09/15 00:36:07 UTC

[GitHub] [druid] imply-cheddar commented on a diff in pull request #13087: Don't wait for graceful shutdown on failed start

imply-cheddar commented on code in PR #13087:
URL: https://github.com/apache/druid/pull/13087#discussion_r971411537


##########
server/src/main/java/org/apache/druid/curator/CuratorModule.java:
##########
@@ -97,6 +99,21 @@ public CuratorFramework makeCurator(ZkEnablementConfig zkEnablementConfig, Curat
 
     framework.getUnhandledErrorListenable().addListener((message, e) -> {
       log.error(e, "Unhandled error in Curator, stopping server.");
+      final Thread halter = new Thread(
+          () -> {
+            try {
+              Threads.sleepFor(10, TimeUnit.SECONDS);

Review Comment:
   Generally speaking, this failure mode should only happen at startup.  I suppose it's possible for unhandled background exceptions to make it out later on in the lifetime of the process, but I'm only familiar with these happening at startup and indicating problems with ZK connectivity/configurations.  As such, I don't think that "finish currently executing queries" is really a thing.  That said, if you feel strongly about it, 30s is better than nothing existing so I'll do it to get it merged :)



-- 
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@druid.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org