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

optimize: the namingserver code to improve readability #6761

Merged
merged 37 commits into from
Aug 18, 2024

Conversation

funky-eyes
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

ggbocoder and others added 30 commits January 2, 2024 10:47
# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
# Conflicts:
#	changes/zh-cn/2.x.md
# Conflicts:
#	common/src/main/java/org/apache/seata/common/metadata/namingserver/Instance.java
#	common/src/main/java/org/apache/seata/common/metadata/namingserver/NamingServerNode.java
#	namingserver/src/main/java/org/apache/seata/namingserver/controller/NamingController.java
#	server/src/main/java/org/apache/seata/server/Server.java
…o 0812

# Conflicts:
#	common/src/main/java/org/apache/seata/common/ConfigurationKeys.java
#	namingserver/src/main/java/org/apache/seata/namingserver/manager/NamingManager.java
# Conflicts:
#	common/src/main/java/org/apache/seata/common/metadata/Cluster.java
#	namingserver/src/main/java/org/apache/seata/namingserver/entity/pojo/ClusterData.java
#	namingserver/src/main/java/org/apache/seata/namingserver/manager/NamingManager.java
#	namingserver/src/test/java/org/apache/seata/namingserver/NamingControllerTest.java
Copy link

codecov bot commented Aug 17, 2024

Codecov Report

Attention: Patch coverage is 65.57377% with 21 lines in your changes missing coverage. Please review.

Project coverage is 50.57%. Comparing base (f7c3866) to head (4f78013).
Report is 1 commits behind head on 2.x.

Files Patch % Lines
...ache/seata/namingserver/manager/NamingManager.java 61.76% 9 Missing and 4 partials ⚠️
...apache/seata/namingserver/entity/bo/ClusterBO.java 61.53% 5 Missing ⚠️
...ache/seata/namingserver/entity/bo/NamespaceBO.java 78.57% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6761      +/-   ##
============================================
- Coverage     50.57%   50.57%   -0.01%     
- Complexity     5936     5942       +6     
============================================
  Files          1061     1063       +2     
  Lines         37123    37143      +20     
  Branches       4404     4405       +1     
============================================
+ Hits          18776    18785       +9     
- Misses        16445    16453       +8     
- Partials       1902     1905       +3     
Files Coverage Δ
...java/org/apache/seata/common/metadata/Cluster.java 0.00% <ø> (ø)
...ache/seata/namingserver/entity/bo/NamespaceBO.java 78.57% <78.57%> (ø)
...apache/seata/namingserver/entity/bo/ClusterBO.java 61.53% <61.53%> (ø)
...ache/seata/namingserver/manager/NamingManager.java 67.00% <61.76%> (-0.15%) ⬇️

... and 2 files with indirect coverage changes

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes merged commit b7fc0c1 into apache:2.x Aug 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants