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 摘要。