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

fix #819 add roll back on for GlobalTransaction #820

Merged
merged 9 commits into from
Apr 19, 2019

Conversation

github-ygy
Copy link
Contributor

Ⅰ. Describe what this PR did

add roll back on for GlobalTransaction
roll back when we throw the exception what we want .

Ⅱ. Does this pull request fix one issue?

fix #819

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

…ure_tx_rollback

# Conflicts:
#	spring/src/main/java/io/seata/spring/annotation/GlobalTransactionalInterceptor.java
#	tm/src/main/java/io/seata/tm/api/TransactionalTemplate.java
#	tm/src/test/java/io/seata/tm/api/TransactionTemplateTest.java
…ure_tx_rollback

# Conflicts:
#	spring/src/main/java/io/seata/spring/annotation/GlobalTransactionalInterceptor.java
#	tm/src/main/java/io/seata/tm/api/TransactionalTemplate.java
#	tm/src/test/java/io/seata/tm/api/TransactionTemplateTest.java
@codecov-io
Copy link

codecov-io commented Apr 17, 2019

Codecov Report

Merging #820 into develop will increase coverage by 0.46%.
The diff coverage is 65.04%.

Impacted file tree graph

@@             Coverage Diff              @@
##             develop    #820      +/-   ##
============================================
+ Coverage      37.74%   38.2%   +0.46%     
- Complexity       974    1008      +34     
============================================
  Files            217     220       +3     
  Lines           8364    8446      +82     
  Branches        1002    1016      +14     
============================================
+ Hits            3157    3227      +70     
- Misses          4826    4835       +9     
- Partials         381     384       +3
Impacted Files Coverage Δ Complexity Δ
...in/java/io/seata/tm/api/TransactionalExecutor.java 60% <ø> (ø) 0 <0> (ø) ⬇️
...st/src/main/java/io/seata/test/client/AppTest.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ing/annotation/GlobalTransactionalInterceptor.java 10.93% <0%> (-2.79%) 2 <0> (ø)
...in/java/io/seata/tm/api/TransactionalTemplate.java 73.4% <65.62%> (-1.6%) 24 <5> (+5)
...va/io/seata/tm/api/transaction/NoRollbackRule.java 80% <80%> (ø) 2 <2> (?)
...java/io/seata/tm/api/transaction/RollbackRule.java 82.14% <82.14%> (ø) 12 <12> (?)
...a/io/seata/tm/api/transaction/TransactionInfo.java 95% <95%> (ø) 13 <13> (?)
... and 3 more

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 ff86975...404cc51. Read the comment docs.

Copy link
Contributor

@CoffeeLatte007 CoffeeLatte007 left a comment

Choose a reason for hiding this comment

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

I left some comment

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

it's ok to me,except for a minor grammar problem.

@xingfudeshi xingfudeshi removed the request for review from fescar-robot April 18, 2019 02:33
Copy link
Contributor

@CoffeeLatte007 CoffeeLatte007 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

@xingfudeshi xingfudeshi merged commit 3ab0518 into apache:develop Apr 19, 2019
nick-tan pushed a commit to nick-tan/seata that referenced this pull request Jul 12, 2019
* fix apache#819 add roll back on for GlobalTransaction

* Merge branch 'develop' of https://github.com/alibaba/fescar into feature_tx_rollback

# Conflicts:
#	spring/src/main/java/io/seata/spring/annotation/GlobalTransactionalInterceptor.java
#	tm/src/main/java/io/seata/tm/api/TransactionalTemplate.java
#	tm/src/test/java/io/seata/tm/api/TransactionTemplateTest.java

* format code and add test

* format code and add test

* for review and  thanks reviewers

* update pkg
@wangliang181230 wangliang181230 added this to the 0.5.* milestone Aug 9, 2021
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.

add roll back on for GlobalTransaction
5 participants