yx9o commented on code in PR #276: URL: https://github.com/apache/rocketmq-mqtt/pull/276#discussion_r1598068540
########## mqtt-ds/src/main/java/org/apache/rocketmq/mqtt/ds/meta/MetaPersistManagerSample.java: ########## @@ -64,15 +63,14 @@ public class MetaPersistManagerSample implements MetaPersistManager { public void init() throws MQClientException, RemotingException, InterruptedException, MQBrokerException { defaultMQAdminExt = MqFactory.buildDefaultMQAdminExt("MetaLoad", serviceConf.getProperties()); defaultMQAdminExt.start(); - refreshMeta(); scheduler = new ScheduledThreadPoolExecutor(1, new ThreadFactoryImpl("refreshMeta")); scheduler.scheduleWithFixedDelay(() -> { try { refreshMeta(); } catch (Throwable t) { logger.error("", t); } - }, 5, 5, TimeUnit.SECONDS); + }, 0, 5, TimeUnit.SECONDS); Review Comment: `NotifyManager` and `MetaPersistManagerSample` are dependent on each other. -- 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-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org