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

[ISSUE #4712]Enhancement for NacosMetaService #4713

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

karsonto
Copy link
Contributor

@karsonto karsonto commented Jan 3, 2024

Fixes #4712.

Motivation

Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.

Modifications

Describe the modifications you've done.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

shutdownNacosService();
}

@SuppressWarnings("checkstyle:WhitespaceAround")
Copy link
Member

Choose a reason for hiding this comment

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

Why CheckStyle warnings should be suppressed?

@@ -216,13 +216,25 @@ public void shutdown() throws MetaException {
if (!startStatus.compareAndSet(true, false)) {
return;
}
shutdownNacosService();
Copy link
Member

Choose a reason for hiding this comment

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

I think this method can be inlined. The shutdown() interface is used to shutdown Nacos, and there is no need to extract a separate method specifically for closing Nacos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

please review again, thanks.

Comment on lines 233 to 236
}


@Override
Copy link
Member

@Pil0tXia Pil0tXia Jan 3, 2024

Choose a reason for hiding this comment

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

redundant new-line

Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (bd2aeb9) 17.39% compared to head (ce77019) 17.40%.
Report is 2 commits behind head on master.

Files Patch % Lines
...eventmesh/meta/nacos/service/NacosMetaService.java 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4713   +/-   ##
=========================================
  Coverage     17.39%   17.40%           
  Complexity     1759     1759           
=========================================
  Files           797      797           
  Lines         29850    29856    +6     
  Branches       2579     2579           
=========================================
+ Hits           5192     5195    +3     
- Misses        24177    24180    +3     
  Partials        481      481           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pandaapo pandaapo merged commit e507497 into apache:master Jan 3, 2024
13 checks passed
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.

[Enhancement] Add shutdown for nacosConfigService
4 participants