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: load SeataSerializer by version #6208

Merged
merged 31 commits into from
Jun 21, 2024

Conversation

Bughue
Copy link
Contributor

@Bughue Bughue commented Dec 25, 2023

  • I have registered the PR changes.

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

@funky-eyes funky-eyes added this to the 2.1.0 milestone Dec 27, 2023
@funky-eyes funky-eyes added the module/common common module label Dec 27, 2023
@Bughue Bughue changed the title feature : load SeataSerializer by version optimize : load SeataSerializer by version Dec 27, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2024

Codecov Report

Attention: Patch coverage is 56.66667% with 39 lines in your changes are missing coverage. Please review.

Project coverage is 52.38%. Comparing base (e72babb) to head (704669a).
Report is 11 commits behind head on 2.x.

❗ Current head 704669a differs from pull request most recent head 3cc6ca3. Consider uploading reports for the commit 3cc6ca3 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             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     
Files Coverage Δ
.../apache/seata/core/protocol/ProtocolConstants.java 100.00% <ø> (+100.00%) ⬆️
...alizer/seata/protocol/BatchResultMessageCodec.java 85.45% <100.00%> (+0.54%) ⬆️
...alizer/seata/protocol/MergeResultMessageCodec.java 80.48% <100.00%> (+1.00%) ⬆️
...ializer/seata/protocol/MergedWarpMessageCodec.java 83.92% <100.00%> (+0.59%) ⬆️
...che/seata/core/rpc/netty/v1/ProtocolV1Decoder.java 65.45% <0.00%> (+50.90%) ⬆️
...che/seata/core/rpc/netty/v1/ProtocolV1Encoder.java 66.66% <0.00%> (+61.53%) ⬆️
...he/seata/serializer/seata/MessageCodecFactory.java 83.18% <83.33%> (ø)
...seata/core/serializer/SerializerServiceLoader.java 23.52% <33.33%> (+23.52%) ⬆️
...apache/seata/serializer/seata/SeataSerializer.java 51.51% <49.09%> (-28.49%) ⬇️

... and 98 files with indirect coverage changes

…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
@funky-eyes funky-eyes removed this from the 2.1.0 milestone Mar 2, 2024
…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
@funky-eyes funky-eyes added this to the 2.2.0 milestone May 6, 2024
@funky-eyes funky-eyes added module/core core module module/serializer serializer module and removed module/common common module labels May 7, 2024
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

…ialize-version

# Conflicts:
#	core/src/main/java/org/apache/seata/core/serializer/SerializerServiceLoader.java
@funky-eyes funky-eyes changed the title optimize : load SeataSerializer by version optimize: load SeataSerializer by version Jun 21, 2024
@funky-eyes funky-eyes merged commit 2a7dc88 into apache:2.x Jun 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/core core module module/serializer serializer module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-version SeataSerializer support
4 participants