-
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: saga annotation #6973
base: 2.x
Are you sure you want to change the base?
feature: saga annotation #6973
Conversation
link: #5300 Changes:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6973 +/- ##
============================================
- Coverage 52.61% 52.57% -0.05%
+ Complexity 6579 6563 -16
============================================
Files 1126 1124 -2
Lines 39928 39893 -35
Branches 4680 4674 -6
============================================
- Hits 21010 20974 -36
- Misses 16916 16921 +5
+ Partials 2002 1998 -4
|
test/pom.xml
Outdated
<dependency> | ||
<groupId>org.apache.seata</groupId> | ||
<artifactId>seata-saga-annotation</artifactId> | ||
<version>2.3.0-SNAPSHOT</version> |
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.
<version>2.3.0-SNAPSHOT</version> | |
<version>${project.version}</version> |
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.
ok
/** | ||
* 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
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.