-
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: support saga annotation #6973
Conversation
link: #5300 Changes:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6973 +/- ##
============================================
- Coverage 52.83% 52.77% -0.06%
+ Complexity 6659 6636 -23
============================================
Files 1128 1126 -2
Lines 40142 40107 -35
Branches 4705 4699 -6
============================================
- Hits 21210 21168 -42
- Misses 16920 16929 +9
+ Partials 2012 2010 -2
|
/** | ||
* The interface saga action. | ||
*/ | ||
@LocalTCC |
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.
为什么还要用@LocalTCC,注解化saga应该跟TCC有明显的类名和注解的区分
Why use @LocalTCC? Annotated saga should be clearly distinguished from TCC by class names and annotations
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.
Saga annotation is generally used for rpc, localTcc will be parsed into remote bean, for the convenience of testing
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.
Fixed, use class annotation instead.
...-annotation/src/main/resources/META-INF/services/org.apache.seata.core.model.ResourceManager
Show resolved
Hide resolved
# Conflicts: # changes/en-us/2.x.md
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
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
I have checked the seata-samples and it works as expected.
Support the two-phase transaction of saga annotation.
CompensationBusinessAction
, which needs to be added to the service interface or implementation of the saga mode branch transactionIn order to support the above functions, we have also made the following changes/optimizations:
DefaultResouecePasser
will cause a resource to be registered multiple times; in order to avoid excessive abstraction and reduce the complexity of parsing cost, i was removed it.