Skip to content

Refactor some of ASM and slot-stats functions#4

Open
tomerqodo wants to merge 3 commits intocodex_full_base_refactor_some_of_asm_and_slot-stats_functions_pr4from
codex_full_head_refactor_some_of_asm_and_slot-stats_functions_pr4
Open

Refactor some of ASM and slot-stats functions#4
tomerqodo wants to merge 3 commits intocodex_full_base_refactor_some_of_asm_and_slot-stats_functions_pr4from
codex_full_head_refactor_some_of_asm_and_slot-stats_functions_pr4

Conversation

@tomerqodo
Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#4

Copy link
Copy Markdown

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

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: 865827b49d

ℹ️ 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 +2152 to +2156
/* Skip if: no keys in the slot, it's our slot, or we are importing it. */
if (!countKeysInSlot(i) ||
clusterIsMySlot(i) ||
getImportingSlotSource(i))
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve keys in unassigned slots during config check

The new deletion predicate treats any slot that isn’t owned or importing as “unowned,” which includes unassigned slots. On startup, if the local node has keys in a slot that is currently unassigned (a scenario the previous logic explicitly handled by claiming the slot), verifyClusterConfigWithData() will now call clusterDeleteKeysInUnownedSlots() first and those keys are deleted before clusterClaimUnassignedSlots() can take ownership. This is a data-loss regression for clusters that load keys for unassigned slots after config desync or node restart; consider excluding unassigned slots from deletion or claim before deletion.

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