-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
bugfix: pass txId into TCC interceptor #1278
Conversation
# Conflicts: # server/src/test/java/io/seata/server/coordinator/DefaultCoreTest.java
Codecov Report
@@ Coverage Diff @@
## develop #1278 +/- ##
=============================================
- Coverage 49.44% 49.41% -0.04%
Complexity 1651 1651
=============================================
Files 326 326
Lines 11449 11448 -1
Branches 1416 1416
=============================================
- Hits 5661 5657 -4
- Misses 5160 5161 +1
- Partials 628 630 +2
Continue to review full report at Codecov.
|
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
LGTM |
* New rpc protocol. * remove debug log, encode body of heartbeat. * bugfix: pass txId into TCC interceptor (#1278) * Fix same code as review. * Fix protobuf and add default conf.
* New rpc protocol. * remove debug log, encode body of heartbeat. * bugfix: pass txId into TCC interceptor (apache#1278) * Fix same code as review. * Fix protobuf and add default conf.
1、Problem
The transaction context was cleared in PR #1195 , which cause the txId be null when regist branch record.
2. Solution
Save the txId when clear transaction context, and pass it into TCC interceptor.