From a965fbf6783568bc03f6afb24918fcbed663fa72 Mon Sep 17 00:00:00 2001 From: linDong <56677297@qq.com> Date: Tue, 27 Aug 2024 20:12:43 +0800 Subject: [PATCH] [task]:fix bug (#2617) --- .../hertzbeat/manager/service/impl/PluginServiceImpl.java | 1 + .../org/apache/hertzbeat/manager/service/PluginServiceTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java index 5838bb260d9..97b9ccd12ae 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java @@ -110,6 +110,7 @@ public class PluginServiceImpl implements PluginService { private final List pluginClassLoaders = new ArrayList<>(); @Override + @Transactional public void deletePlugins(Set ids) { List plugins = metadataDao.findAllById(ids); // disable the plugins that need to be removed diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java index 172719805cd..59dc49b2014 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java @@ -74,7 +74,7 @@ class PluginServiceTest { @BeforeEach void setUp() { - pluginService = new PluginServiceImpl(metadataDao, itemDao,pluginParamDao); + pluginService = new PluginServiceImpl(metadataDao, itemDao, pluginParamDao); } @Test