Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues. [Bug]: JSON merge allocation test flakes under race instrumentation #25914 tracks the same failure mode in a different JSON merge allocation test; test(function): exclude JSON allocation check under race #25915 fixed only that earlier test.
Branch Name
main
Commit ID
Other Environment Information
- Hardware parameters: GitHub-hosted Ubuntu/x86 runner
- OS type: Ubuntu/x86
- Others: race-enabled MatrixOne UT job
Actual Behavior
TestJSONOverlapsAccessorAllocationsDoNotScaleWithRows intermittently fails in the required Ubuntu/x86 UT while unrelated pull requests are tested. In PR #26196, the assertion reported one=0, many=187 although that PR changes only frontend branch-snapshot SQL generation and BVT coverage. The same test passed in contemporaneous CI runs and the coverage UT on the same PR head passed.
Expected Behavior
Race instrumentation must not make an allocation-statistics-only assertion fail unrelated pull requests. The allocation regression invariant should remain covered in non-race builds, while functional JSON_OVERLAPS tests continue to run in both race and non-race builds.
Steps to Reproduce
- Run the Ubuntu/x86 race-enabled MatrixOne UT on a revision containing add json_overlap #25981.
- Observe
testing.AllocsPerRunaround the complete 8192-row JSON_OVERLAPS execution. - Under race instrumentation, process-wide allocation deltas can exceed the asserted
oneRow + 10threshold.
Additional information
The test has the same structural problem documented in #25914: testing.AllocsPerRun measures a long instrumented execution and derives counts from process-wide allocation deltas. #25915 established the repository fix pattern by moving the allocation-only test into a //go:build !race test file without changing production code. The JSON_OVERLAPS test was added later by #25981 and did not adopt that pattern.
Activity
gouhongshen commentedon Jul 29, 2026
Fixed on
mainby #26207, commit251dcfefc. The merged change contains the same!raceallocation-test separation proposed in #26215; #26215 is closed as superseded.