This is an automated email from the ASF dual-hosted git repository.

luchunliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 2122b972cb [INLONG-9397][Agent] Do not directly delete the instance 
records of the local db when stopping the instances (#9398)
2122b972cb is described below

commit 2122b972cb387d1cd024f94c1d17ea758d5853ba
Author: justinwwhuang <hww_jus...@163.com>
AuthorDate: Mon Dec 4 12:33:08 2023 +0800

    [INLONG-9397][Agent] Do not directly delete the instance records of the 
local db when stopping the instances (#9398)
---
 .../java/org/apache/inlong/agent/core/instance/InstanceManager.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java
 
b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java
index 485f2dad56..e600c5b671 100644
--- 
a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java
+++ 
b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java
@@ -417,7 +417,7 @@ public class InstanceManager extends AbstractDaemon {
 
     private void stopAllInstances() {
         instanceMap.values().forEach((instance) -> {
-            deleteInstance(instance.getInstanceId());
+            deleteFromMemory(instance.getInstanceId());
         });
         instanceMap.clear();
     }

Reply via email to