Skip to content

fix(rust/ffi): clear release callback on partitions after release - #4873

Merged
lidavidm merged 1 commit into
apache:mainfrom
lidavidm:rs-partition-release
Oct 8, 2026
Merged

lidavidm merged 1 commit into
apache:mainfrom
lidavidm:rs-partition-release

Conversation

@lidavidm

@lidavidm lidavidm commented Oct 8, 2026

Copy link
Copy Markdown
Member

Assisted-by: GPT-6.1 Sol

Copilot AI 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.

🟢 Approval recommended

The release lifecycle is safely guarded and adequately tested.

0 open findings

What changed in this PR

Ensures Rust FFI partitions cannot be deallocated repeatedly.

Changes:

  • Clears the release callback before deallocation.
  • Nulls released fields and adds lifecycle tests.
File Description
rust/​ffi/​src/​types.rs Makes partition release idempotent and tests cleanup behavior.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@lidavidm
lidavidm marked this pull request as ready for review October 8, 2026 07:16
@lidavidm
lidavidm requested a review from wjones127 as a code owner October 8, 2026 07:16
@lidavidm
lidavidm merged commit ebf2aea into apache:main Oct 8, 2026
24 checks passed
@lidavidm
lidavidm deleted the rs-partition-release branch October 8, 2026 20:57
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.

3 participants