jihoonson commented on a change in pull request #6901: Introduce published 
segment cache in broker
URL: https://github.com/apache/incubator-druid/pull/6901#discussion_r253242562
 
 

 ##########
 File path: 
sql/src/main/java/org/apache/druid/sql/calcite/schema/MetadataSegmentView.java
 ##########
 @@ -106,10 +106,15 @@ public void start()
     }
     try {
       if (isCacheEnabled) {
-        scheduledExec.schedule(new PollTask(), 0, TimeUnit.MILLISECONDS);
-        lifecycleLock.started();
-        log.info("MetadataSegmentView Started.");
+        try {
+          poll();
+        }
+        finally {
 
 Review comment:
   Please add a catch block to emit exceptions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to