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
47c8e1cb
Commit
47c8e1cb
authored
Mar 09, 2021
by
房斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缩减日志
parent
fddc2858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
DubboCustomerShutDownHook.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
+7
-7
No files found.
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
View file @
47c8e1cb
...
...
@@ -87,7 +87,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
registryServerSync
.
setSignal
(
true
);
LoggerUtil
.
info
(
"provider url unregister success :"
+
value
.
getServiceInterface
()
+
" time:"
+
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss:SSS"
).
format
(
new
Date
())
+
StringUtil
.
line
());
str
.
add
(
"delete
provider url success:"
+
value
.
getServiceInterface
()
+
" time:"
+
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss:SSS"
).
format
(
new
Date
())
+
StringUtil
.
line
());
str
.
add
(
"delete
"
+
value
.
getServiceInterface
()
+
" success: "
+
StringUtil
.
line
());
}
catch
(
Exception
e
)
{
LoggerUtil
.
error
(
"matirx-monitor deleteService error:"
,
e
);
logger
.
info
(
"matirx-monitor delete Service error service:{}"
,
value
.
getServiceInterface
()
+
StringUtil
.
line
()
+
Stack
.
errInfo
(
e
)+
StringUtil
.
line
());
...
...
@@ -96,7 +96,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
}
}
else
{
str
.
add
(
"
warn:matrix-monitor no gracefulshutdown registered for delete
ip "
+
ip
+
" name :"
+
name
+
StringUtil
.
line
());
str
.
add
(
"
no serviced registered
ip "
+
ip
+
" name :"
+
name
+
StringUtil
.
line
());
detail
.
setCode
(-
1
);
}
break
;
...
...
@@ -121,14 +121,14 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
}
else
{
detail
.
setCode
(-
1
);
str
.
add
(
"
warn:matrix-monitor
no urls check ip:"
+
ip
+
" name :"
+
name
+
StringUtil
.
line
());
str
.
add
(
" no urls check ip:"
+
ip
+
" name :"
+
name
+
StringUtil
.
line
());
logger
.
info
(
"warn:matrix-monitor no urls check ip:"
+
ip
+
" name :"
+
name
+
StringUtil
.
line
());
}
}
catch
(
Exception
e
)
{
detail
.
setCode
(-
1
);
str
.
add
(
"
error :matirx-monitor
offDubbo "
+
Stack
.
errInfo
(
e
)
+
StringUtil
.
line
());
str
.
add
(
" offDubbo "
+
Stack
.
errInfo
(
e
)
+
StringUtil
.
line
());
}
finally
{
DubboShutdownHook
.
getDubboShutdownHook
().
doDestroy
();
}
...
...
@@ -211,14 +211,14 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
catch
(
Exception
e
)
{
urls
.
remove
(
url
);
detail
.
setCode
(-
1
);
content
.
add
(
" error
:matirx-monitor check Dubbo service "
+
StringUtil
.
line
()
+
Stack
.
errInfo
(
e
)
+
StringUtil
.
line
());
content
.
add
(
" error
:check Dubbo service "
+
Stack
.
errInfo
(
e
)
+
StringUtil
.
line
());
}
if
(
result
!=
null
&&
result
.
size
()
>
0
)
{
content
.
add
(
"
warn:matrix-monitor check service failure "
+
url
.
getServiceKey
()
+
"
reason zk notice failed "
+
StringUtil
.
line
());
content
.
add
(
"
check "
+
url
.
getServiceKey
()
+
" failure
reason zk notice failed "
+
StringUtil
.
line
());
detail
.
setCode
(-
1
);
}
else
{
if
(
result
!=
null
&&
result
.
size
()
==
0
)
{
content
.
add
(
"
matrix-monitor gracefulshutdown check service ok "
+
url
.
getServiceKey
()
+
StringUtil
.
line
());
content
.
add
(
"
check "
+
url
.
getServiceKey
()
+
" ok"
+
StringUtil
.
line
());
}
}
return
result
;
...
...
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