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 rollback event repeated and some event status not correct #4533
Conversation
server/src/main/java/io/seata/server/session/SessionHelper.java
Outdated
Show resolved
Hide resolved
…_timeout_not_remove
…_remove � Conflicts: � server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java � server/src/main/java/io/seata/server/session/SessionHelper.java
…_remove � Conflicts: � server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java
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.
LGTM
…_remove � Conflicts: � server/src/main/java/io/seata/server/session/SessionHelper.java
Codecov Report
@@ Coverage Diff @@
## develop #4533 +/- ##
=============================================
- Coverage 49.06% 49.03% -0.04%
+ Complexity 4093 4089 -4
=============================================
Files 733 733
Lines 26005 26012 +7
Branches 3212 3213 +1
=============================================
- Hits 12760 12755 -5
- Misses 11886 11895 +9
- Partials 1359 1362 +3
|
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.
LGTM
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.
LGTM
from the normative point of view, the buried logic of metrics should sink into the behavioral action method.
Ⅰ. Describe what this PR did
解决#4531 提到的问题
1 是handleRetryCommitting超时后直接发了event,但没有endCommit
---- 改造成endCommitFail
---- (#4551 改造之后仍然有这个问题)
2 是endRollbackFailed自带了postTcSessionEndEvent(),下面还再发一次,事件重复了
----去掉外层的event,保留新方法里面的event
---- (#4551 改造之后仍然有这个问题,但发的是两个不同状态的event)
commit的处理同理
Ⅱ. Does this pull request fix one issue?
fixes #4531
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews