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: fix GlobalSession cannot be cleared normally when delayed deletion is enabled #4438

Merged

Conversation

GoodBoyCoder
Copy link
Contributor

@GoodBoyCoder GoodBoyCoder commented Mar 5, 2022

…alSession

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

GlobalSession在延迟删除的情况下,由于提前设置了Rollbacked状态导致定时任务无法即时处理。目前放弃提前设置状态,改为由DefaultCore#doGlobalRollback的执行结果来确认是否返回Rollbacked状态

In the case of delayed deletion of GlobalSession, the scheduled task cannot be processed immediately because the Rollbacked state is set in advance. At present, the advance setting state is abandoned, and the execution result of DefaultCore#doGlobalRollback is used to confirm whether to return the Rollbacked state.

Ⅱ. 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

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2022

Codecov Report

Merging #4438 (a8efed1) into develop (1f2a02f) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4438      +/-   ##
=============================================
- Coverage      48.34%   48.34%   -0.01%     
+ Complexity      3971     3970       -1     
=============================================
  Files            734      734              
  Lines          25277    25275       -2     
  Branches        3105     3105              
=============================================
- Hits           12220    12218       -2     
+ Misses         11739    11737       -2     
- Partials        1318     1320       +2     
Impacted Files Coverage Δ
.../java/io/seata/server/coordinator/DefaultCore.java 46.83% <50.00%> (-1.29%) ⬇️
...o/seata/server/coordinator/DefaultCoordinator.java 50.18% <0.00%> (-0.37%) ⬇️
...in/java/io/seata/server/session/SessionHelper.java 74.71% <0.00%> (+2.29%) ⬆️

@funky-eyes funky-eyes added this to the 1.5.0 milestone Mar 6, 2022
@funky-eyes funky-eyes added module/server server module type: bug Category issues or prs related to bug. labels Mar 6, 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 pr登记一下

changes/1.5.0.md Outdated Show resolved Hide resolved
@funky-eyes funky-eyes changed the title bugfix:fix GlobalSession cannot be cleared normally when delayed deletion is enabled bugfix: fix GlobalSession cannot be cleared normally when delayed deletion is enabled Mar 6, 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.

LGTM

@funky-eyes funky-eyes merged commit dec87ad into apache:develop Mar 7, 2022
@GoodBoyCoder GoodBoyCoder deleted the bugfix_async_rollback_status branch April 26, 2022 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/server server module type: bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants