mcy 6 年之前
父節點
當前提交
6b9487a0a0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      deployer/src/main/java/com/alibaba/otter/canal/deployer/mbean/CanalServerBean.java

+ 3 - 1
deployer/src/main/java/com/alibaba/otter/canal/deployer/mbean/CanalServerBean.java

@@ -77,7 +77,7 @@ public class CanalServerBean implements CanalServerMXBean {
             InstanceAction instanceAction = getInstanceAction(destination);
             if (instanceAction != null) {
                 instanceAction.start(destination);
-
+                return true;
             }
         } catch (Throwable e) {
             logger.error(e.getMessage(), e);
@@ -91,6 +91,7 @@ public class CanalServerBean implements CanalServerMXBean {
             InstanceAction instanceAction = getInstanceAction(destination);
             if (instanceAction != null) {
                 instanceAction.stop(destination);
+                return true;
             }
         } catch (Throwable e) {
             logger.error(e.getMessage(), e);
@@ -104,6 +105,7 @@ public class CanalServerBean implements CanalServerMXBean {
             InstanceAction instanceAction = getInstanceAction(destination);
             if (instanceAction != null) {
                 instanceAction.reload(destination);
+                return true;
             }
         } catch (Throwable e) {
             logger.error(e.getMessage(), e);