-
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: compatible with lower versions of SPI #6315
Conversation
…compatible_spi # Conflicts: # compatible/pom.xml
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6315 +/- ##
============================================
+ Coverage 51.93% 52.39% +0.45%
- Complexity 5185 5216 +31
============================================
Files 921 920 -1
Lines 32166 31913 -253
Branches 3874 3805 -69
============================================
+ Hits 16706 16721 +15
+ Misses 13822 13546 -276
- Partials 1638 1646 +8
|
common/src/main/java/org/apache/seata/common/loader/EnhancedServiceLoader.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/core/compressor/Compressor.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.
I suggest changing the SPI loading priority here.
- Load the Apache Seata SPI first. Because Apache Seata is the final state of the future.
- If the Apache seata SPI cannot be found, output a warn log and try to load the io.seata SPI.
- If the io.seata SPI also fails to be loaded, handle the exception according to the logic in the original SPI.
Ok |
Done. @slievrly |
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
Ⅱ. Does this pull request fix one issue?
fixes #6307
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews