Repository navigation
[4.2] fix(mpool): make on-heap ownership observable - #27498
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head da927ff. No blocking issues found.
All three backport commits have identical stable patch IDs to the already-approved upstream #27497 changes. The ownership graph closes consistently: normal-pool metadata survives deletion for same/cross-pool late Free; deleted-owner Free decrements global ownership directly; NoLock teardown clears its local registry and bulk-releases both bytes and objects. On-heap counters remain independent from off-heap admission/resource accounting, and the two Prometheus gauges add fixed cardinality.
Counterexample validation removed each of the three terminal ownership decrements locally; same/cross-pool Free, deleted-owner late Free, and NoLock teardown assertions all failed for the expected retained-byte reason.
Validation on the restored exact head: build and vet for all four affected packages; full tests for mpool, metric/v2, mometric, and frontend; focused mpool and metric race stress, count=10.
Merge Queue Status
This pull request spent 3 minutes 32 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #27498 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks: HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #27404
What this PR does / why we need it:
Backport #27497 to 4.2-dev.
The two source commits applied cleanly to the newest 4.2-dev tip.
Validation: