[PR #61] [MERGED] fix: Fix CROSSSLOT Error in Redis Commands #288

Closed
opened 2026-02-16 01:15:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/61
Author: @Jam804
Created: 3/5/2025
Status: Merged
Merged: 3/6/2025
Merged by: @Yeuoly

Base: mainHead: main


📝 Commits (1)

  • d055558 optimization: Fix CROSSSLOT Error in Redis Commands

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 internal/core/plugin_manager/debugging_runtime/connection_key.go (+2 -2)

📄 Description

This pull request addresses the issue of the "CROSSSLOT Keys in request don't hash to the same slot" error, which occurs when Redis commands involve keys that are not hashed to the same slot in a clustered environment.

Changes Made:

  1. Updated Redis command logic to ensure that all keys involved in transactions or multi-key operations are hashed to the same slot.
  2. Modified the data distribution strategy to align with Redis cluster requirements, ensuring key patterns are consistent with slot allocation.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/61 **Author:** [@Jam804](https://github.com/Jam804) **Created:** 3/5/2025 **Status:** ✅ Merged **Merged:** 3/6/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`d055558`](https://github.com/langgenius/dify-plugin-daemon/commit/d055558d31bbafb560d22024e7df57f9e140876f) optimization: Fix CROSSSLOT Error in Redis Commands ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/debugging_runtime/connection_key.go` (+2 -2) </details> ### 📄 Description This pull request addresses the issue of the "CROSSSLOT Keys in request don't hash to the same slot" error, which occurs when Redis commands involve keys that are not hashed to the same slot in a clustered environment. Changes Made: 1. Updated Redis command logic to ensure that all keys involved in transactions or multi-key operations are hashed to the same slot. 2. Modified the data distribution strategy to align with Redis cluster requirements, ensuring key patterns are consistent with slot allocation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:24 -05:00
yindo closed this issue 2026-02-16 01:15:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#288