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

feature:init Namingserver server #6538

Merged
merged 33 commits into from
Jul 30, 2024
Merged

Conversation

ggbocoder
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

The Seata server side, used for initiating registration with the Naming Server and for the storage of Naming Server metadata.

Ⅱ. 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

# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
# Conflicts:
#	changes/zh-cn/2.x.md
# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
#	common/src/main/java/org/apache/seata/common/metadata/Cluster.java
#	common/src/main/java/org/apache/seata/common/result/Code.java
#	common/src/main/java/org/apache/seata/common/result/Result.java
#	common/src/main/java/org/apache/seata/common/result/SingleResult.java
@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 29.83871% with 174 lines in your changes missing coverage. Please review.

Project coverage is 50.33%. Comparing base (da9e99b) to head (e784690).
Report is 1 commits behind head on 2.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6538      +/-   ##
============================================
- Coverage     50.46%   50.33%   -0.14%     
- Complexity     5830     5851      +21     
============================================
  Files          1051     1058       +7     
  Lines         36347    36586     +239     
  Branches       4323     4347      +24     
============================================
+ Hits          18342    18414      +72     
- Misses        16187    16349     +162     
- Partials       1818     1823       +5     
Files Coverage Δ
...ava/org/apache/seata/common/ConfigurationKeys.java 0.00% <ø> (ø)
...a/org/apache/seata/common/exception/ErrorCode.java 100.00% <100.00%> (ø)
...java/org/apache/seata/common/metadata/Cluster.java 0.00% <ø> (ø)
...ache/seata/namingserver/manager/NamingManager.java 59.13% <ø> (ø)
...ge/redis/store/RedisVGroupMappingStoreManager.java 78.57% <78.57%> (ø)
...org/apache/seata/server/session/SessionHolder.java 50.64% <46.15%> (-0.40%) ⬇️
.../seata/server/store/VGroupMappingStoreManager.java 0.00% <0.00%> (ø)
...rage/file/store/FileVGroupMappingStoreManager.java 76.59% <76.59%> (ø)
...in/java/org/apache/seata/core/store/MappingDO.java 0.00% <0.00%> (ø)
...ge/db/store/DataBaseVGroupMappingStoreManager.java 6.25% <6.25%> (ø)
... and 3 more

... and 1 file with indirect coverage changes

@funky-eyes funky-eyes added this to the 2.2.0 milestone Jul 17, 2024
@funky-eyes funky-eyes added type: feature Category issues or prs related to feature request. module/server server module labels Jul 17, 2024
import org.springframework.boot.test.context.SpringBootTest;


@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

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

why Disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test depends on the DB environment.

Copy link
Contributor

Choose a reason for hiding this comment

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

This test depends on the DB environment.

为什么不是默认存储在file或者redis,这样也能开启这个测试用例
Why is it not stored in file or redis by default, so that this test case can also be opened?

server/src/main/java/org/apache/seata/server/Server.java Outdated Show resolved Hide resolved
server/src/main/java/org/apache/seata/server/Server.java Outdated Show resolved Hide resolved
Copy link
Contributor

@funky-eyes funky-eyes 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 522d46e into apache:2.x Jul 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/server server module type: feature Category issues or prs related to feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants