-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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: limit redis mode all sessions #4431
optimize: limit redis mode all sessions #4431
Conversation
# Conflicts: # core/src/main/java/io/seata/core/console/result/PageResult.java # server/src/main/java/io/seata/server/storage/SessionConverter.java
Codecov Report
@@ Coverage Diff @@
## develop #4431 +/- ##
=============================================
- Coverage 48.51% 48.44% -0.08%
+ Complexity 3965 3963 -2
=============================================
Files 733 733
Lines 25154 25163 +9
Branches 3084 3086 +2
=============================================
- Hits 12203 12189 -14
- Misses 11635 11659 +24
+ Partials 1316 1315 -1
|
server/src/main/java/io/seata/server/storage/redis/store/RedisTransactionStoreManager.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/storage/redis/store/RedisTransactionStoreManager.java
Show resolved
Hide resolved
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
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/storage/redis/store/RedisTransactionStoreManager.java
Outdated
Show resolved
Hide resolved
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.
Does it conflict with the GlobalSessionParam pageNum parameter?
GlobalSessionParam calls readSession with the xid conditional argument, so there is no problem. |
Ⅰ. Describe what this PR did
limit the number of queries in Redis storage mode
Ⅱ. Does this pull request fix one issue?
fixes #4429
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews