fix(redis): add Redis Cluster support for AgentStateStore - #2587
Open
amyaxy wants to merge 4 commits into
Open
Conversation
…ore (agentscope-ai#2579) - Bind session/namespace keys to the same slot via hash tags to avoid CROSSSLOT errors on multi-key EVAL in cluster mode - Fix cross-node SCAN for Jedis (scanIteration) and Lettuce (iterate all master nodes) so listSessionIds/clearAllSessions no longer miss shards - Escape glob metacharacters in listSessionIds userId - Document key-layout breaking change in class Javadoc - Make the integration test portable (single container + fixed port bindings) so it runs on Windows/macOS/Linux - Add testcontainers dependency; add unit + integration tests (22 cases pass)
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
oss-maintainer
left a comment
Collaborator
There was a problem hiding this comment.
Summary
This PR modifies 12 files with 1160 lines of diff.
Observations
- Files changed: 12
- Test coverage: ✅ Tests included
- CLA: ✅ Signed
Suggestions
- Please ensure all public API changes are backward compatible
- Consider adding unit tests for new logic paths
Automated review by github-manager-bot
Contributor
Author
|
@zouyx 麻烦审核一下,谢谢 |
zouyx
reviewed
Aug 8, 2026
| client.deleteKeys(keys.toArray(new String[0])); | ||
| // Delete keys one by one to avoid CROSSSLOT errors | ||
| // in Redis Cluster mode where keys span multiple slots. | ||
| for (String key : keys) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
close #2579
Checklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)