-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Conversation
# 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ 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
|
# Conflicts: # common/src/main/java/org/apache/seata/common/metadata/Node.java
common/src/main/java/org/apache/seata/common/metadata/Unit.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/metadata/MetaResponse.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/metadata/Instance.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/seata/server/storage/db/store/VGroupMappingDataBaseDAO.java
Show resolved
Hide resolved
server/src/main/java/org/apache/seata/server/storage/db/store/VGroupMappingDataBaseDAO.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/seata/server/storage/redis/store/RedisVGroupMappingStoreManager.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/seata/server/storage/file/store/FileVGroupMappingStoreManagerTest.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/NamingServerConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/NamingServerConstants.java
Outdated
Show resolved
Hide resolved
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
|
||
@Disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why Disabled?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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/storage/db/store/VGroupMappingDataBaseDAO.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/seata/server/storage/db/store/DataBaseVGroupMappingStoreManager.java
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/NamingServerConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/NamingServerConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/seata/common/NamingServerConstants.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/seata/server/session/SessionHolder.java
Outdated
Show resolved
Hide resolved
# Conflicts: # common/src/main/java/org/apache/seata/common/exception/ErrorCode.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. 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