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_r253242662
########## 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 { + scheduledExec.schedule(new PollTask(), 0, TimeUnit.MILLISECONDS); Review comment: Please set the proper wait time instead of starting poll() immediately. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org