Skip to content

[Test]: orphan privilege maintenance fixture assumes ordered bulk objects without constraining writer DOP #29530

Closed

Description

@XuPeng-SH

Description

TestV406MaintenanceCleansHistoricalOrphanObjectPrivileges requires a 1,000-row physical ordered scan to add at most one bounded reader page over the live-row baseline. Its bulk seed uses mo_role_privs CROSS JOIN generate_series(0,10035) but does not constrain the bulk writer layout. Correct Cartesian cardinality can legitimately select parallel INSERT writers, creating overlapping sorted key ranges, each requiring a reader page.

Confirmed in PR #29527 at SHA 59b5b981447ddbdd589050c2181944970998b3e6:

  • Coverage UT fails line202: scanned7,049 > baseline49+1,000.
  • Normal UT fails the same test/line.
  • Local final planner candidate reproduces line202: scanned10,085 >1,049 on a16-worker host, terminal exit1.

This is a test fixture contract gap exposed by the correct production plan, not evidence of wrong privilege contents.

Expected behavior

Establish the ordered bulk layout explicitly while preserving every existing strict scan row/block and maintenance correctness assertion. Constrain only the existing bulk helper INSERT to session max_dop=1, save the prior value, and restore immediately with failure-path cleanup. This yields ordered non-overlapping objects (8,192 and1,844 rows), rather than asserting there is literally one object. No global setting change, weakened bound, skip, new cluster or planner workaround.

Local verification

The exact failing test now passes (11.455s). Full owning pkg/tests/upgrade package passes with -count=1 -vet=all (47.263s); incremental lint reports zero issues. Focused CI coverage mode also passes (11.578s), using -short -tags matrixone_test -covermode=set and planner/upgrade instrumentation. Full CI rerun is still pending. PR #29527 will carry this fixture repair with the production root-cause fixes.

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    kind/bug
    severity/s0
    on Sep 30, 2026
  3. added a commit that references this issue on Oct 1, 2026
    f6eb974
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