aloyszhang commented on code in PR #9892: URL: https://github.com/apache/inlong/pull/9892#discussion_r1542998597
########## inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java: ########## @@ -106,51 +120,110 @@ public String getCurrentMd5() { return currentMd5; } + public ModuleConfig getModule(Integer moduleId) { + return currentModules.get(moduleId); + } + /** - * thread for core thread. + * Thread for core thread. * * @return runnable profile. */ private Runnable coreThread() { return () -> { - Thread.currentThread().setName("task-manager-core"); + Thread.currentThread().setName("module-manager-core"); + restoreFromLocalFile(confPath); Review Comment: One thing I am concerned about is whether the result of `restoreFromLocalFile` has effects on `dealWithConfigQueue`. i.e. does the `dealWithConfigQueue` method be invoked even if the `restoreFromLocalFile` finished in exception? -- 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...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org