Commit b5e75882 authored by wutu's avatar wutu

细化异常处理

parent 3168cc9f
...@@ -90,11 +90,16 @@ public class ClusterServiceCheck { ...@@ -90,11 +90,16 @@ public class ClusterServiceCheck {
log.info("创建自检容器集群【Test1_0,Test1_1,Test2】"); log.info("创建自检容器集群【Test1_0,Test1_1,Test2】");
try { try {
clusterService.initContainers(clusterConfig); clusterService.initContainers(clusterConfig);
topologyService.createTopo(clusterConfig.getId(), clusterConfig.getTopology());
} catch (Exception e) { } catch (Exception e) {
log.error("容器启动失败"); log.error("容器启动失败");
throw new RuntimeException("容器启动失败"); throw new RuntimeException("容器启动失败");
} }
try {
topologyService.createTopo(clusterConfig.getId(), clusterConfig.getTopology());
} catch (Exception e) {
log.error("容器网络初始化失败", e);
throw new RuntimeException("容器网络初始化失败");
}
if(!clusterService.getClusterIds().contains(CLUSTERID)) { if(!clusterService.getClusterIds().contains(CLUSTERID)) {
log.error("集群创建失败%", CLUSTERID); log.error("集群创建失败%", CLUSTERID);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment