Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: can't post TimeoutRollbacked event #4780
bugfix: can't post TimeoutRollbacked event #4780
Changes from 6 commits
2f3e43c
5261234
38edef4
9ad9838
ced174e
aa95109
2f10101
3400729
f8c9d65
bb9b5e8
e47fda1
1ce9295
ea761d5
6d1d00c
73b5d1a
46e128b
470430e
8930b94
c150b93
28bd885
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
已经是rollbacking status的是否会进这里?如果会是否存在重复修改?
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.
进到这个满足几个条件,retry是false,且stauts是TimeoutRollbacked,TimeoutRollbackFailed,TimeoutRollbacking,TimeoutRollbackRetrying,也就是说,只有因为超时回滚的相关status且非重试才会走到这,只有TimeoutRollbacking的情况下,retry才是false,其他情况下都是true(至少我没发现其他超时相关status且retry是false的情况,DefaultCoordinator的382行做了限制),应该不会存在重复修改
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.
how to remove the globalSession(status=TimeoutRollbacking)?
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.
在SessionHelper的183行,TimeoutRollbacking的session被改成了Rollbacking,2分30秒后被handleRetryCommitting删掉
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.
Is the flow of transaction state reasonable?
TimeoutRollbacking -> Rollbacking Because you want to delete it?