Skip to content

[Bug]: JSON_OVERLAPS allocation test flakes under race instrumentation #26214

Closed

Description

@gouhongshen

Is there an existing issue for the same bug?

Branch Name

main

Commit ID

e06b766

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.

Failing job: https://github.com/matrixorigin/matrixone/actions/runs/30234212908/job/89878849732

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

  1. Run the Ubuntu/x86 race-enabled MatrixOne UT on a revision containing add json_overlap #25981.
  2. Observe testing.AllocsPerRun around the complete 8192-row JSON_OVERLAPS execution.
  3. Under race instrumentation, process-wide allocation deltas can exceed the asserted oneRow + 10 threshold.

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

  1. added
    kind/bug
    severity/s0
    on Jul 27, 2026
  2. self-assigned this
    on Jul 27, 2026
  3. gouhongshen commented on Jul 29, 2026

    @gouhongshen
    ContributorAuthor

    Fixed on main by #26207, commit 251dcfefc. The merged change contains the same !race allocation-test separation proposed in #26215; #26215 is closed as superseded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions