Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
openXG-WIC-Cnf
Commits
b5e75882
Commit
b5e75882
authored
Jun 21, 2020
by
wutu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细化异常处理
parent
3168cc9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cnf-edge-center/src/main/java/top/ninwoo/edgecenter/check/ClusterServiceCheck.java
...java/top/ninwoo/edgecenter/check/ClusterServiceCheck.java
+6
-1
No files found.
cnf-edge-center/src/main/java/top/ninwoo/edgecenter/check/ClusterServiceCheck.java
View file @
b5e75882
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment