agentscope-ai / agentscope-ai/agentscope-java

[Bug]: agentStateStore does not support Redis Cluster.

Aperta
#2,579 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area/build area/core/memory bug
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.