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

bugfix: pass txId into TCC interceptor #1278

Merged
merged 7 commits into from Jul 8, 2019
Merged

Conversation

zhangthen
Copy link
Contributor

@zhangthen zhangthen commented Jul 8, 2019

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.

@zhangthen zhangthen changed the title bugfix : bugfix: pass txId into TCC interceptor Jul 8, 2019
@zhangthen zhangthen requested review from slievrly and ujjboy July 8, 2019 07:38
@codecov-io
Copy link

codecov-io commented Jul 8, 2019

Codecov Report

Merging #1278 into develop will decrease coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
...a/rm/tcc/interceptor/ActionInterceptorHandler.java 25.37% <ø> (+0.37%) 7 <0> (ø) ⬇️
...java/io/seata/spring/tcc/TccActionInterceptor.java 12.82% <0%> (ø) 2 <0> (ø) ⬇️
...server/store/file/FileTransactionStoreManager.java 45.99% <0%> (-1.4%) 19% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e72c59...f7a7854. Read the comment docs.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@ujjboy
Copy link
Contributor

ujjboy commented Jul 8, 2019

LGTM

@ujjboy ujjboy merged commit 0c5c6e6 into apache:develop Jul 8, 2019
ujjboy pushed a commit to ujjboy/seata that referenced this pull request Jul 8, 2019
@leizhiyuan leizhiyuan modified the milestone: 0.7.0 Jul 10, 2019
leizhiyuan pushed a commit that referenced this pull request Jul 11, 2019
* 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.
nick-tan pushed a commit to nick-tan/seata that referenced this pull request Jul 12, 2019
nick-tan pushed a commit to nick-tan/seata that referenced this pull request Jul 12, 2019
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants