Skip to content

Don't allow slot migration to myself node#2497

Merged
hwware merged 4 commits into
valkey-io:unstablefrom
enjoy-binbin:slot_target_node
Aug 22, 2025
Merged

Don't allow slot migration to myself node#2497
hwware merged 4 commits into
valkey-io:unstablefrom
enjoy-binbin:slot_target_node

Conversation

@enjoy-binbin

@enjoy-binbin enjoy-binbin commented Aug 17, 2025

Copy link
Copy Markdown
Member

This may result in meaningless slot migration job, we should
return an error to user in advance to avoid operation error.
Also by myself is not correct English grammar and myself
is a internal code terminology, changed to by this node.

Was introduced in #1949.

This may result in meaningless slot migration job, we should
return an error to user in advance to avoid operation error.

Was introduced in valkey-io#1949.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Comment thread src/cluster_migrateslots.c Outdated
Comment thread src/cluster_migrateslots.c Outdated
Signed-off-by: Binbin <binloveplay1314@qq.com>
@codecov

codecov Bot commented Aug 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.05%. Comparing base (f36cc20) to head (814dbaa).
⚠️ Report is 27 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2497      +/-   ##
============================================
+ Coverage     72.01%   72.05%   +0.04%     
============================================
  Files           126      126              
  Lines         70448    70482      +34     
============================================
+ Hits          50734    50787      +53     
+ Misses        19714    19695      -19     
Files with missing lines Coverage Δ
src/cluster_migrateslots.c 92.63% <100.00%> (+0.04%) ⬆️

... and 19 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/cluster_migrateslots.c
Comment thread src/cluster_migrateslots.c Outdated
Signed-off-by: Binbin <binloveplay1314@qq.com>
@hwware hwware merged commit 8c55547 into valkey-io:unstable Aug 22, 2025
52 checks passed
@enjoy-binbin enjoy-binbin deleted the slot_target_node branch August 23, 2025 01:07
rjd15372 pushed a commit to rjd15372/valkey that referenced this pull request Sep 19, 2025
This may result in meaningless slot migration job, we should
return an error to user in advance to avoid operation error.
Also `by myself` is not correct English grammar and `myself`
is a internal code terminology, changed to `by this node`.

Was introduced in valkey-io#1949.

---------

Signed-off-by: Binbin <binloveplay1314@qq.com>
rjd15372 pushed a commit that referenced this pull request Sep 23, 2025
This may result in meaningless slot migration job, we should
return an error to user in advance to avoid operation error.
Also `by myself` is not correct English grammar and `myself`
is a internal code terminology, changed to `by this node`.

Was introduced in #1949.

---------

Signed-off-by: Binbin <binloveplay1314@qq.com>
hpatro pushed a commit to hpatro/valkey that referenced this pull request Oct 3, 2025
This may result in meaningless slot migration job, we should
return an error to user in advance to avoid operation error.
Also `by myself` is not correct English grammar and `myself`
is a internal code terminology, changed to `by this node`.

Was introduced in valkey-io#1949.

---------

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

None yet

Development

Successfully merging this pull request may close these issues.

5 participants