You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change is limited to command metadata. It does not modify the command implementation, migration behavior, or wire protocol.
Root Cause
The command's reply schema was not fully synchronized with its runtime implementation in src/cluster_migrateslots.c.
The server emits name and remaining_repl_size, but the schema declares link_name and omits remaining_repl_size.
Because the schema specifies additionalProperties: false, a valid runtime response may fail validation against the published schema.
Changes
Correct the migration identifier property from link_name to name.
Document remaining_repl_size as a non-negative integer representing outstanding replication data in the source export client's reply buffer.
Preserve all existing runtime behavior.
Testing and Validation
Source-level verification
Compared the reply schema against clusterCommandGetSlotMigrations() in src/cluster_migrateslots.c.
Confirmed that the unmodified schema disagrees with the runtime field names.
Verified the correction against a local source fixture using schema validation.
Local checkout validation — mark completed after confirming results
Ran the focused Python schema verification script; baseline failed as expected and the corrected schema passed.
Validated JSON syntax using python3 -m json.tool.
Ran Valkey's official reply-schema linter.
Built Valkey successfully using make -j4.
Ran ./runtest --single unit/cluster/cluster-migrateslots.
Ran git diff --check with no whitespace errors.
The existing cluster migration tests exercise the runtime response fields. The focused schema verification additionally checks the metadata mismatch, which is not detected by runtime tests alone.
Compatibility
No behavioral or protocol changes. The patch only corrects the documented reply schema to reflect the existing server response.
The schema renames link_name to name and adds remaining_repl_size. Its description specifies that the value is zero for imports or when no export client is attached.
The metadata update aligns the documented reply fields with the reported server output. No actionable merge-blocking risk is identified in the supplied evidence.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title names the change: it fixes the CLUSTER GETSLOTMIGRATIONS reply schema. The raw summary confirms the schema file renames link_name to name and adds remaining_repl_size, so the title matches t…
Description check
The description states that the reply schema in cluster-getslotmigrations.json is corrected to match the server's fields. It names the renamed link_name to name property and the added remaining_repl_s…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change: it fixes the CLUSTER GETSLOTMIGRATIONS reply schema. The raw summary confirms the schema file renames link_name to name and adds remaining_repl_size, so the title matches the main change.
Full details: Description check
Explanation
The description states that the reply schema in cluster-getslotmigrations.json is corrected to match the server's fields. It names the renamed link_name to name property and the added remaining_repl_size property, which matches the changeset.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 7743e485-7b9c-4373-af39-512f07e37b1f
Commits
Reviewing files that changed from the base of the PR and between b3b5ab9 and c6b07bc.
Files selected for processing: 1
src/commands/cluster-getslotmigrations.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Ready for human review.
The new head only adds a merge from unstable. The schema diff is unchanged and still matches the reply built in src/cluster_migrateslots.c:2539-2570: the key is name, and remaining_repl_size is always reply_bytes or 0. No open findings.
Risk: Low. Only the JSON reply schema changes. If it were wrong, the reply-schema validator and generated docs would be affected, not server behavior.
Open findings: none.
Backport: Needed for 9.2, 9.1, 9.0. The schema still declares link_name on upstream/9.2, 9.1 and 9.0. None of them list remaining_repl_size, which the 9.2 and 9.1 replies emit. 9.0 needs only the rename.
Updated for 3d54684 at 2026-11-03 17:10 UTC. The bot rewrites this comment on every review.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.30%. Comparing base (9b4dcf6) to head (73ffdc9). ⚠️ Report is 6 commits behind head on unstable.
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Keep the schema correction from link_name to name. Remove the optional
remaining_repl_size field imported by the sweep: 9.0's
clusterCommandGetSlotMigrations() returns 9 or 11 fields and never emits
that field. This metadata-only adaptation preserves all runtime replies.
Backport-Source-PR: 5251
Backport-Source-Commit: eda518a
Backport-Adaptation: Describe only fields emitted by the native 9.0 command.
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Rename link_name to name in the CLUSTER GETSLOTMIGRATIONS reply
schema to match clusterCommandGetSlotMigrations(). The native 9.0
command does not emit remaining_repl_size, so that newer field is
excluded from this backport.
Release-branch adaptations contributed by Sarthak Aggarwal <[email protected]>.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Backport-Source-Commit: eda518a
Backport-Adaptation: Describe only fields emitted by the native 9.0 command.
Correct the `CLUSTER GETSLOTMIGRATIONS` reply schema to match the fields
already returned by the server. This change fixes two inconsistencies in
`src/commands/cluster-getslotmigrations.json`:
- Renames `link_name` to `name`, matching the response generated by
`clusterCommandGetSlotMigrations()`.
- Adds the missing `remaining_repl_size` property, which was introduced
in #3135.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Rename link_name to name in the CLUSTER GETSLOTMIGRATIONS reply
schema to match clusterCommandGetSlotMigrations(). The native 9.0
command does not emit remaining_repl_size, so that newer field is
excluded from this backport.
Release-branch adaptations contributed by Sarthak Aggarwal <[email protected]>.
Signed-off-by: SHUVA JYOTI KAR <[email protected]>
Backport-Source-PR: 5251
Backport-Source-Commit: eda518a
Backport-Adaptation: Describe only fields emitted by the native 9.0 command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Correct the
CLUSTER GETSLOTMIGRATIONSreply schema to match the fields already returned by the server.This change fixes two inconsistencies in
src/commands/cluster-getslotmigrations.json:link_nametoname, matching the response generated byclusterCommandGetSlotMigrations().remaining_repl_sizeproperty, which was introduced in Add remaining_repl_size field in CLUSTER GETSLOTMIGRATIONS output #3135.The change is limited to command metadata. It does not modify the command implementation, migration behavior, or wire protocol.
Root Cause
The command's reply schema was not fully synchronized with its runtime implementation in
src/cluster_migrateslots.c.The server emits
nameandremaining_repl_size, but the schema declareslink_nameand omitsremaining_repl_size.Because the schema specifies
additionalProperties: false, a valid runtime response may fail validation against the published schema.Changes
link_nametoname.remaining_repl_sizeas a non-negative integer representing outstanding replication data in the source export client's reply buffer.Testing and Validation
Source-level verification
clusterCommandGetSlotMigrations()insrc/cluster_migrateslots.c.Local checkout validation — mark completed after confirming results
python3 -m json.tool.make -j4../runtest --single unit/cluster/cluster-migrateslots.git diff --checkwith no whitespace errors.The existing cluster migration tests exercise the runtime response fields. The focused schema verification additionally checks the metadata mismatch, which is not detected by runtime tests alone.
Compatibility
No behavioral or protocol changes. The patch only corrects the documented reply schema to reflect the existing server response.
References
remaining_repl_size.This PR does not attempt to implement the remaining enhancements in #2725.