Repository navigation
fix(mpool): remove capacity class limit for parallel hash build - #26669
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 9d6b12a051d51861fc04d1695ca455ffe0f81876.
The uint32 capacity-class namespace fixes the reachable 256th-worker failure without changing the 16-byte allocationLease footprint. I traced all class consumers through mpool, vector allocation selections, HashBuild spill/recovery, and reset/terminal cleanup: there are no narrowing conversions or serialized representations, registration remains mutex-serialized and nonzero/unique, and live registrations are rejected at terminal completion.
Independent validation:
- parent
21908973304c4117ee2f19670d1d8acd218cd0fbfails exactly on registration 256 withallocation account invariant failure; - PR head passes 257 sequential registrations, uint32 wrap/default-zero skipping, occupied-ID skipping, and 512 concurrent unique registrations;
- focused counterexamples pass under
-race -count=10; go vetand full tests pass forpkg/common/mpoolandpkg/vm/process;- focused HashBuild accounted-spill lifecycle tests pass;
- current CI is green.
No blocking findings.
Merge Queue Status
This pull request spent 1 hour 5 minutes 24 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 43 minutes 59 seconds in the queue, including 42 minutes 38 seconds running CI. Required conditions to merge
|
…ixorigin#26669) TPCH Q9 with four shuffle joins and `max_dop=64` creates 256 parallel shuffle HashBuild workers. Each worker registers a recovery capacity controller, but `AllocationCapacityClass` used `uint8` and reserved zero for the default controller, so the 256th registration failed with `allocation account invariant failure` before query execution. This PR: - expands `AllocationCapacityClass` from `uint8` to `uint32`; - preserves the 16-byte `allocationLease` layout by removing obsolete explicit padding; - adds a regression test that registers and cleanly releases 256 HashBuild recovery capacity controllers. Local validation: - `go build`, `go vet`, and full unit tests for `pkg/common/mpool` and `pkg/vm/process`; - focused HashBuild spill regression test; - focused race tests with `-count=100` and full-package race tests for both owning packages. Approved by: @XuPeng-SH
…ixorigin#26669) TPCH Q9 with four shuffle joins and `max_dop=64` creates 256 parallel shuffle HashBuild workers. Each worker registers a recovery capacity controller, but `AllocationCapacityClass` used `uint8` and reserved zero for the default controller, so the 256th registration failed with `allocation account invariant failure` before query execution. This PR: - expands `AllocationCapacityClass` from `uint8` to `uint32`; - preserves the 16-byte `allocationLease` layout by removing obsolete explicit padding; - adds a regression test that registers and cleanly releases 256 HashBuild recovery capacity controllers. Local validation: - `go build`, `go vet`, and full unit tests for `pkg/common/mpool` and `pkg/vm/process`; - focused HashBuild spill regression test; - focused race tests with `-count=100` and full-package race tests for both owning packages. Approved by: @XuPeng-SH
…ixorigin#26669) TPCH Q9 with four shuffle joins and `max_dop=64` creates 256 parallel shuffle HashBuild workers. Each worker registers a recovery capacity controller, but `AllocationCapacityClass` used `uint8` and reserved zero for the default controller, so the 256th registration failed with `allocation account invariant failure` before query execution. This PR: - expands `AllocationCapacityClass` from `uint8` to `uint32`; - preserves the 16-byte `allocationLease` layout by removing obsolete explicit padding; - adds a regression test that registers and cleanly releases 256 HashBuild recovery capacity controllers. Local validation: - `go build`, `go vet`, and full unit tests for `pkg/common/mpool` and `pkg/vm/process`; - focused HashBuild spill regression test; - focused race tests with `-count=100` and full-package race tests for both owning packages. Approved by: @XuPeng-SH
What type of PR is this?
Which issue(s) this PR fixes:
issue #26663
What this PR does / why we need it:
TPCH Q9 with four shuffle joins and
max_dop=64creates 256 parallel shuffle HashBuild workers. Each worker registers a recovery capacity controller, butAllocationCapacityClassuseduint8and reserved zero for the default controller, so the 256th registration failed withallocation account invariant failurebefore query execution.This PR:
AllocationCapacityClassfromuint8touint32;allocationLeaselayout by removing obsolete explicit padding;Local validation:
go build,go vet, and full unit tests forpkg/common/mpoolandpkg/vm/process;-count=100and full-package race tests for both owning packages.