agentscope-ai / agentscope-ai/agentscope-java

[Bug]: agentStateStore does not support Redis Cluster.

未关闭
#2,579 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/build area/core/memory bug
主要语言
Java
星标
5.6k
派生
1.3k
平均合并
4 天 12 小时
30 天内合并 PR
77

描述

**Describe the bug**

Redis Cluster 模式下,多 key 的 Lua 脚本 (EVAL) 要求所有 key 哈希到同一 slot,否则抛出 CROSSSLOT Keys in request don't hash to the same slot。

1. redis cluster
2. agentStateStore.save(userId, conversationId, "agent_state", state);
3. org.redisson.client.RedisException: CROSSSLOT Keys in request don't hash to the same slot.

**To Reproduce**
Steps to reproduce the behavior:

@Bean
public AgentStateStore agentStateStore(RedissonClient redissonClient){
return RedisAgentStateStore.builder()
.redissonClient(redissonClient)
.keyPrefix("sa:session:")
.build();
}

agentStateStore.save(userId, conversationId, "agent_state", state);

Image

Image

Image

**Environment (please complete the following information):**

- AgentScope-Java Version: 2.0.1-SNAPSHOT
- Java Version: 21
- OS: windows

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。