-
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
optimize: load SeataSerializer by version #6208
Conversation
core/src/main/java/io/seata/core/serializer/SerializerServiceLoader.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/serializer/SerializerServiceLoader.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
...ializer-seata/src/main/java/io/seata/serializer/seata/protocol/v0/MessageCodecFactoryV0.java
Outdated
Show resolved
Hide resolved
...ializer-seata/src/main/java/io/seata/serializer/seata/protocol/v0/MessageCodecFactoryV0.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
...rializer-seata/src/main/java/io/seata/serializer/seata/protocol/MergeResultMessageCodec.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/seata/core/rpc/netty/v1/ProtocolV1Encoder.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6208 +/- ##
============================================
+ Coverage 50.19% 52.38% +2.19%
- Complexity 5232 5245 +13
============================================
Files 942 924 -18
Lines 33221 32119 -1102
Branches 4022 3842 -180
============================================
+ Hits 16676 16827 +151
+ Misses 14938 13628 -1310
- Partials 1607 1664 +57
|
...-serializer-seata/src/main/java/io/seata/serializer/seata/protocol/v0/SeataSerializerV0.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
serializer/seata-serializer-seata/src/main/java/io/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
…ialize-version # Conflicts: # core/src/main/java/io/seata/core/rpc/netty/v1/ProtocolV1Decoder.java
…ialize-version # Conflicts: # serializer/seata-serializer-seata/src/main/java/org/apache/seata/serializer/seata/SeataSerializer.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/BatchResultMessageSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/MergeResultMessageSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/MergedWarpMessageSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/RegisterRMRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/RegisterRMResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/RegisterTMRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/RegisterTMResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchCommitRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchCommitResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchRegisterRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchRegisterResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchReportRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchReportResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchRollbackRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/BranchRollbackResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalBeginRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalBeginResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalCommitRequestCodecTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalCommitResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalLockQueryRequestSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalLockQueryResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalRollbackRequestCodecTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalRollbackResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalStatusRequestCodecTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/GlobalStatusResponseSerializerTest.java # serializer/seata-serializer-seata/src/test/java/org/apache/seata/serializer/seata/protocol/transaction/UndoLogDeleteRequestSerializerTest.java
…ialize-version # Conflicts: # core/src/main/java/org/apache/seata/core/rpc/netty/v1/ProtocolV1Decoder.java # core/src/main/java/org/apache/seata/core/serializer/SerializerServiceLoader.java
.../seata-serializer-seata/src/main/java/org/apache/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
.../seata-serializer-seata/src/main/java/org/apache/seata/serializer/seata/SeataSerializer.java
Outdated
Show resolved
Hide resolved
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
…ialize-version # Conflicts: # core/src/main/java/org/apache/seata/core/serializer/SerializerServiceLoader.java
Ⅰ. Describe what this PR did
load SeataSerializer by version
Ⅱ. Does this pull request fix one issue?
fixes #6211
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews