Skip to content
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

Merged
merged 6 commits into from
Sep 22, 2020

Conversation

kylixs
Copy link
Contributor

@kylixs kylixs commented Sep 22, 2020

fix issues:
#1514
#1513

@kylixs kylixs requested a review from hengyunabc September 22, 2020 09:31
@@ -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");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个异常信息不清楚。 另外,可以用 IllegalStateException

Copy link
Contributor Author

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();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来的代码有调用 shutdownWorkGroup(),新的代码没有

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来的destroy() 方法为何没有调用shutdownWorkGroup()? 我加上去了

@hengyunabc hengyunabc added this to the 3.4.2 milestone Sep 22, 2020
@hengyunabc hengyunabc merged commit 4d06126 into alibaba:master Sep 22, 2020
@kylixs kylixs deleted the improve-stop-logic2 branch September 23, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.3.4 版本后,没有办法干净地停止 arthas
2 participants