Skip to content

Split SLOT_EXPORT_AUTHENTICATING into SEND and READ to avoid synchronous reading of auth response#2494

Merged
enjoy-binbin merged 3 commits into
valkey-io:unstablefrom
enjoy-binbin:slot_auth
Aug 29, 2025
Merged

Split SLOT_EXPORT_AUTHENTICATING into SEND and READ to avoid synchronous reading of auth response#2494
enjoy-binbin merged 3 commits into
valkey-io:unstablefrom
enjoy-binbin:slot_auth

Conversation

@enjoy-binbin

Copy link
Copy Markdown
Member

The old SLOT_EXPORT_AUTHENTICATING added in #1949, when processed by the source node,
we will send the AUTH command and then reads the response. If the target node is blocked
during this process, the source node will also be blocked. We should use a read handler
to handle this. We split SLOT_EXPORT_AUTHENTICATING into SLOT_EXPORT_SEND_AUTH and
SLOT_EXPORT_READ_AUTH_RESPONSE to avoid this issue.

…ous reading of auth response

The old SLOT_EXPORT_AUTHENTICATING added in valkey-io#1949, when processed by the source node,
we will send the AUTH command and then reads the response. If the target node is blocked
during this process, the source node will also be blocked. We should use a read handler
to handle this. We split SLOT_EXPORT_AUTHENTICATING into SLOT_EXPORT_SEND_AUTH and
SLOT_EXPORT_READ_AUTH_RESPONSE to avoid this issue.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
@zuiderkwast zuiderkwast moved this to In Progress in Valkey 9.0 Aug 21, 2025

@murphyjacob4 murphyjacob4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/cluster_migrateslots.c
@enjoy-binbin enjoy-binbin merged commit 88cd208 into valkey-io:unstable Aug 29, 2025
50 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Valkey 9.0 Aug 29, 2025
@enjoy-binbin enjoy-binbin deleted the slot_auth branch August 29, 2025 02:20
rjd15372 pushed a commit to rjd15372/valkey that referenced this pull request Sep 19, 2025
…ous reading of auth response (valkey-io#2494)

The old SLOT_EXPORT_AUTHENTICATING added in valkey-io#1949, when processed by the source node,
we will send the AUTH command and then reads the response. If the target node is blocked
during this process, the source node will also be blocked. We should use a read handler
to handle this. We split SLOT_EXPORT_AUTHENTICATING into SLOT_EXPORT_SEND_AUTH and
SLOT_EXPORT_READ_AUTH_RESPONSE to avoid this issue.

Signed-off-by: Binbin <binloveplay1314@qq.com>
rjd15372 pushed a commit that referenced this pull request Sep 23, 2025
…ous reading of auth response (#2494)

The old SLOT_EXPORT_AUTHENTICATING added in #1949, when processed by the source node,
we will send the AUTH command and then reads the response. If the target node is blocked
during this process, the source node will also be blocked. We should use a read handler
to handle this. We split SLOT_EXPORT_AUTHENTICATING into SLOT_EXPORT_SEND_AUTH and
SLOT_EXPORT_READ_AUTH_RESPONSE to avoid this issue.

Signed-off-by: Binbin <binloveplay1314@qq.com>
hpatro pushed a commit to hpatro/valkey that referenced this pull request Oct 3, 2025
…ous reading of auth response (valkey-io#2494)

The old SLOT_EXPORT_AUTHENTICATING added in valkey-io#1949, when processed by the source node,
we will send the AUTH command and then reads the response. If the target node is blocked
during this process, the source node will also be blocked. We should use a read handler
to handle this. We split SLOT_EXPORT_AUTHENTICATING into SLOT_EXPORT_SEND_AUTH and
SLOT_EXPORT_READ_AUTH_RESPONSE to avoid this issue.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants