Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
8a3086ff
Commit
8a3086ff
authored
Mar 09, 2021
by
房斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印检测但是没收到zk日志
parent
6bd9842b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
DubboCustomerShutDownHook.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
+3
-2
No files found.
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
View file @
8a3086ff
...
@@ -218,7 +218,8 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
...
@@ -218,7 +218,8 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
detail
.
setCode
(-
1
);
detail
.
setCode
(-
1
);
}
else
{
}
else
{
if
(
result
!=
null
&&
result
.
size
()
==
0
)
{
if
(
result
!=
null
&&
result
.
size
()
==
0
)
{
content
.
add
(
" check "
+
url
.
getServiceKey
()
+
" ok"
+
StringUtil
.
line
());
content
.
add
(
" check "
+
url
.
getServiceKey
()
+
" ok"
+
StringUtil
.
line
());
logger
.
info
(
"check "
+
url
.
getServiceKey
()+
" ok,but not received zk noticed"
);
}
}
}
}
return
result
;
return
result
;
...
@@ -273,7 +274,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
...
@@ -273,7 +274,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
}
Thread
.
sleep
(
500
);
//休息500毫秒
Thread
.
sleep
(
500
);
//休息500毫秒
}
}
logger
.
info
(
"checks size ip
,name
!!!!!"
,
ip
,
name
,
checks
.
size
());
logger
.
info
(
"checks size ip
:{},name:{},size:{}
!!!!!"
,
ip
,
name
,
checks
.
size
());
return
detail
;
return
detail
;
}
}
}
}
...
...
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