Skip to content

[Bug]: TAE TestDelete3 scan reads missing object during background flush #30622

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

Branch Name

PR #30548 UT racing run

Commit ID

b1b189aafc598c8b5d77bc1e9a020862600aec48

Other Environment Information

Actual Behavior

The UT racing job fails in pkg/vm/engine/tae/db/test at TestDelete3 while scanning the table. The log reports an appendable object with no extent, then attempts to load extent 0_0_0_0 and cannot find the object file:

DATA|OS(2)|Hint(1041)|[OBJ(1000)-(01a15258-a139-746f-a621-3a77d9099420_00000)|NoExt]|[C@1792382902585311697-0,D@0-0]
[LoadObjectMetaByExtent] ... "extent": "0_0_0_0"
file 01a15258-a139-746f-a621-3a77d9099420_00000 is not found

The same test run logs a background flush containing that object, followed by a flush completion that publishes a different output object. The test then fails with TestDelete3 (1.37s). The later context canceled messages occur as the test engine shuts down after the failure.

The immediate failure is that a scan tries to read an object file which is absent. The logs suggest a possible mismatch between the object's in-memory/appendable state and its flush or replacement state, but do not yet prove which transition is incorrect.

Expected Behavior

Repeated scans during TestDelete3's append/delete cycle should continue to return the expected rows while background flush proceeds. A scan should not resolve a NoExt object to extent 0_0_0_0 and fail because its file is missing.

Steps to Reproduce

  1. Run the Ubuntu/x86 UT racing job for PR fix(iceberg): normalize typed refs before scan planning #30548, or run TestDelete3 in github.com/matrixorigin/matrixone/pkg/vm/engine/tae/db/test with the race configuration used by CI.
  2. The test creates a TAE engine, appends rows, then repeats delete and scan operations while the engine's background flush/checkpoint workers run.
  3. In the failing run, TestDelete3 reaches a scan of object 01a15258-a139-746f-a621-3a77d9099420_00000 after the corresponding flush activity and receives file ... is not found.

Additional information

The current PR changes Iceberg typed-reference normalization and Iceberg tests. The observed failure is in TAE's TestDelete3; no direct causal link to the PR change is established by this log. The exact failing SHA is the CI run's SHA above. Please reproduce against the base and trace object ownership/publication across appendable-object freeze, flush output publication, scan metadata selection, and cleanup before changing behavior. Keep the older closed TestDelete3 reports in mind, but treat this file-missing signature as a distinct report unless investigation demonstrates a shared root cause.

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. added
    kind/bug
    on Oct 20, 2026
  3. added a commit that references this issue on Oct 20, 2026
    79298b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions