-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: Realize the interface of console: get global session and global lock in the redis mode #4281
Conversation
redis分页需要的总数total目前暂时用keys获取的,暂时没想到好的方法,还是不要这个total前端没法统计总页数,第一次提交开源代码代码写的不好的地方请多多指教 |
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/BranchSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
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
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/BranchSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/session/SessionCondition.java
Outdated
Show resolved
Hide resolved
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
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
# Conflicts: # changes/1.5.0.md # changes/en-us/1.5.0.md
review’s problem has been completely modified please review again ! |
# Conflicts: # changes/1.5.0.md # changes/en-us/1.5.0.md # core/src/main/java/io/seata/core/console/result/PageResult.java # server/src/main/java/io/seata/server/storage/SessionConverter.java
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
# Conflicts: # server/src/main/java/io/seata/server/session/SessionCondition.java # server/src/main/java/io/seata/server/storage/redis/store/RedisTransactionStoreManager.java
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.java
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalSessionRedisServiceImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/console/impl/redis/GlobalLockRedisServiceImpl.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.
不要有任何地方与下行代码间隔两行
server/src/main/java/io/seata/server/session/SessionCondition.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/seata/server/storage/redis/store/RedisTransactionStoreManager.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisQueryConsolTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisQueryConsolTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/seata/server/session/redis/RedisTransactionStoreManagerTest.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
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
fixes #4261
fixes #4260
Ⅲ. Why don't you add test cases (unit test/integration test)?
yes,see:
RedisTransactionStoreManagerTest
RedisQueryConsolTest
Ⅳ. Describe how to verify it
redis mode: query GlobalSession
redis mode:query GlobalLock
Ⅴ. Special notes for reviews