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

optimize: do not execute triggerAfterCommit() in case of timeout #4958

Merged
merged 101 commits into from Oct 12, 2022

Conversation

miaoxueyu
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

direct use of TransactionManager.commit () whether do check is timeout

Ⅱ. Does this pull request fix one issue?

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

miaoxueyu and others added 30 commits January 6, 2022 00:07
# Conflicts:
#	server/src/main/java/io/seata/server/console/impl/file/GlobalSessionFileServiceImpl.java
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2022

Codecov Report

Merging #4958 (9cc98ac) into develop (f300ca6) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4958      +/-   ##
=============================================
- Coverage      48.77%   48.76%   -0.01%     
  Complexity      4078     4078              
=============================================
  Files            734      734              
  Lines          25855    25855              
  Branches        3190     3190              
=============================================
- Hits           12610    12609       -1     
  Misses         11902    11902              
- Partials        1343     1344       +1     
Impacted Files Coverage Δ
...in/java/io/seata/tm/api/TransactionalTemplate.java 60.58% <0.00%> (ø)
...torage/file/store/FileTransactionStoreManager.java 55.62% <0.00%> (-0.65%) ⬇️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 61.76% <0.00%> (+0.73%) ⬆️

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM 标题要改下,pr做个登记

@funky-eyes funky-eyes added this to the 1.6.0 milestone Sep 30, 2022
@miaoxueyu
Copy link
Contributor Author

马上改好,话说 https://github.com/seata/seata/pull/4445/files 这个PR也忘记登记了怎么办,要不要重新在这个PR里补一下

@slievrly
Copy link
Member

slievrly commented Oct 9, 2022

马上改好,话说 https://github.com/seata/seata/pull/4445/files 这个PR也忘记登记了怎么办,要不要重新在这个PR里补一下

go ahead.

@miaoxueyu miaoxueyu changed the title optimize: direct use of TransactionManager.commit () whether do check is timeout optimize: do not execute triggerAfterCommit() in case of timeout Oct 9, 2022
Copy link
Contributor

@funky-eyes funky-eyes 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

@jsbxyyx jsbxyyx 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
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes merged commit e7fe7f8 into apache:develop Oct 12, 2022
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.

Does a TimeoutRollback transaction execute the before commit hook cause business inconsistency issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants