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: add fury serializer support #7038

Merged
merged 15 commits into from
Jan 9, 2025

Conversation

GoodBoyCoder
Copy link
Contributor

@GoodBoyCoder GoodBoyCoder commented Nov 30, 2024

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Add support for serializing rpc messages using Fury

Ⅱ. Does this pull request fix one issue?

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

Ⅳ. Describe how to verify it

set transport.serialization=fury

Ⅴ. Special notes for reviews

@funky-eyes funky-eyes added this to the 2.4.0 milestone Dec 12, 2024
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.67%. Comparing base (5b31862) to head (ccaf454).
Report is 1 commits behind head on 2.x.

Files with missing lines Patch % Lines
...g/apache/seata/serializer/fury/FurySerializer.java 55.55% 2 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #7038      +/-   ##
============================================
+ Coverage     52.66%   52.67%   +0.01%     
- Complexity     6688     6697       +9     
============================================
  Files          1132     1134       +2     
  Lines         40286    40310      +24     
  Branches       4724     4724              
============================================
+ Hits          21215    21234      +19     
- Misses        17039    17042       +3     
- Partials       2032     2034       +2     
Files with missing lines Coverage Δ
...seata/core/serializer/SerializerServiceLoader.java 47.36% <100.00%> (ø)
...g/apache/seata/core/serializer/SerializerType.java 70.83% <100.00%> (+1.26%) ⬆️
...e/seata/serializer/fury/FurySerializerFactory.java 100.00% <100.00%> (ø)
...g/apache/seata/serializer/fury/FurySerializer.java 55.55% <55.55%> (ø)

... and 2 files with indirect coverage changes

try {
return (T) threadSafeFury.deserialize(bytes);
} catch (Exception e) {
e.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

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

应该将其输出为error日志,或者抛出异常
It should be output as an error log, or an exception should be thrown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code for the test exception was not completely cleaned up. Done

@@ -879,6 +882,12 @@
<version>${rocketmq-version}</version>
</dependency>

<!-- Fury Serialize -->
Copy link
Member

Choose a reason for hiding this comment

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

Does it need to be declared in the seata-all pom?

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 is not the pom.xml of the seata-all module, but the seata-dependencies module.

# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
…ture-fury-serialize

# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
# Conflicts:
#	changes/en-us/2.x.md
#	changes/zh-cn/2.x.md
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 added type: feature Category issues or prs related to feature request. module/serializer serializer module labels Jan 9, 2025
@funky-eyes funky-eyes merged commit 2438d77 into apache:2.x Jan 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/serializer serializer 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