-
Notifications
You must be signed in to change notification settings - Fork 8.9k
optimize : reorganize the usage of Sessionmanager and SessionLifecycleListener #4881
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
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## 2.x #4881 +/- ##
============================================
- Coverage 48.51% 48.40% -0.11%
+ Complexity 4188 4167 -21
============================================
Files 764 764
Lines 26924 26892 -32
Branches 3348 3348
============================================
- Hits 13061 13016 -45
- Misses 12475 12479 +4
- Partials 1388 1397 +9
|
…into dev_session_manager_x_listener
…ager_x_listener � Conflicts: � server/src/main/java/io/seata/server/coordinator/DefaultCore.java
…ager_x_listener � Conflicts: � server/src/main/java/io/seata/server/session/GlobalSession.java
…_x_listener � Conflicts: � server/src/main/java/io/seata/server/coordinator/DefaultCoordinator.java � server/src/main/java/io/seata/server/session/SessionHolder.java
server/src/main/java/io/seata/server/session/GlobalSession.java
Outdated
Show resolved
Hide resolved
funky-eyes
left a comment
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
Ⅰ. Describe what this PR did
在https://github.com/seata/seata/issues/4857的问题里,分两个pr解决
这个pr做了以下几件事
这个pr把addlistener的操作已经全部去掉,但这个方法和listener自身机制保留(目前闲置),以后有必要再使用

由于现在SessionLifecycleListener只有被GlobalSession调用,所以只需要改好GlobalSession就可以
上图是用临时改方法名的方法用错误统计来显示全部的调用
Ⅱ. Does this pull request fix one issue?
fixes #4857
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews