Skip to content

Fix adjacent slot range behavior in ASM operations#2

Open
tomerqodo wants to merge 8 commits into
codex_full_base_fix_adjacent_slot_range_behavior_in_asm_operations_pr2from
codex_full_head_fix_adjacent_slot_range_behavior_in_asm_operations_pr2
Open

Fix adjacent slot range behavior in ASM operations#2
tomerqodo wants to merge 8 commits into
codex_full_base_fix_adjacent_slot_range_behavior_in_asm_operations_pr2from
codex_full_head_fix_adjacent_slot_range_behavior_in_asm_operations_pr2

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#2

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0443e9f9b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cluster.c
Comment on lines 2014 to 2017
sds err = NULL;
if (validateSlotRanges(slots, &err) != C_OK) {
addReplyErrorSds(c, err);
if (slotRangeArrayNormalizeAndValidate(slots, &err) != C_OK) {
sdsfree(err);
slotRangeArrayFree(slots);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Send error reply on slot-range validation failure

When slotRangeArrayNormalizeAndValidate fails (overlapping ranges, start > end, etc.), parseSlotRangesOrReply now frees the error and returns NULL without sending any reply. Callers like clusterMigrationCommandImport and sflushCommand simply return on NULL, so the client receives no response and hangs whenever invalid ranges are supplied. Previously this path called addReplyErrorSds, so this regression breaks error handling for bad input.

Useful? React with 👍 / 👎.

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.

2 participants