Skip to content

fix: shutdown nacos client when discovery destroy#4471

Merged
hezhangjian merged 1 commit intoapache:masterfrom
karsonto:develop-nacos-agent-destroy
Aug 16, 2024
Merged

fix: shutdown nacos client when discovery destroy#4471
hezhangjian merged 1 commit intoapache:masterfrom
karsonto:develop-nacos-agent-destroy

Conversation

@karsonto
Copy link
Copy Markdown
Member

[ISSUE #4470] Shutdown nacos client properly.

Copy link
Copy Markdown
Member

@hezhangjian hezhangjian left a comment

Choose a reason for hiding this comment

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

Nice Catch

Co-authored-by: ZhangJian He <shoothzj@gmail.com>
@hezhangjian hezhangjian force-pushed the develop-nacos-agent-destroy branch from e86027e to dfef4fa Compare August 16, 2024 06:13
@hezhangjian hezhangjian changed the title Destroy nacos client fix: shutdown nacos client when discovery destroy Aug 16, 2024
@hezhangjian hezhangjian merged commit e676df9 into apache:master Aug 16, 2024
@karsonto karsonto deleted the develop-nacos-agent-destroy branch August 16, 2024 06:55
try {
namingService.shutDown();
} catch (NacosException e) {
throw new IllegalStateException("destroy process is interrupted.");
Copy link
Copy Markdown
Contributor

@liubao68 liubao68 Aug 19, 2024

Choose a reason for hiding this comment

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

Do not throw exception, just add some logs and ignore. Or try catch exception in SCBEngine

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 participants