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
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
CommunityXG
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 {
log
.
info
(
"创建自检容器集群【Test1_0,Test1_1,Test2】"
);
try
{
clusterService
.
initContainers
(
clusterConfig
);
topologyService
.
createTopo
(
clusterConfig
.
getId
(),
clusterConfig
.
getTopology
());
}
catch
(
Exception
e
)
{
log
.
error
(
"容器启动失败"
);
throw
new
RuntimeException
(
"容器启动失败"
);
}
try
{
topologyService
.
createTopo
(
clusterConfig
.
getId
(),
clusterConfig
.
getTopology
());
}
catch
(
Exception
e
)
{
log
.
error
(
"容器网络初始化失败"
,
e
);
throw
new
RuntimeException
(
"容器网络初始化失败"
);
}
if
(!
clusterService
.
getClusterIds
().
contains
(
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