-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve arthas stop logic (#1513, #1514) #1517
Conversation
agent/src/main/java/com/taobao/arthas/agent334/AgentBootstrap.java
Outdated
Show resolved
Hide resolved
agent/src/main/java/com/taobao/arthas/agent334/AgentBootstrap.java
Outdated
Show resolved
Hide resolved
agent/src/main/java/com/taobao/arthas/agent334/AgentBootstrap.java
Outdated
Show resolved
Hide resolved
agent/src/main/java/com/taobao/arthas/agent334/AgentBootstrap.java
Outdated
Show resolved
Hide resolved
@@ -352,6 +352,9 @@ private void bind(Configure configure) throws Throwable { | |||
} | |||
|
|||
shellServer.listen(new BindHandler(isBindRef)); | |||
if (!isBind()) { | |||
throw new RuntimeException("some ports bind failed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个异常信息不清楚。 另外,可以用 IllegalStateException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改为"One or more ports bind failed",每个term server bind失败时已经有错误信息,这里不需要再带上了吧?
} | ||
shutdownWorkGroup(); | ||
logger().error("Error during start as-server", e); | ||
destroy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来的代码有调用 shutdownWorkGroup(),新的代码没有
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来的destroy() 方法为何没有调用shutdownWorkGroup()? 我加上去了
fix issues:
#1514
#1513