Skip to content

[Bug]: TestLazyCacheFSReadsMagicPrefixedRemoteObjectsWithoutLocalChecksum leaks IOEntry data in UT Coverage #27145

Closed

Description

@ck89119

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

aa68b6d

Other Environment Information

Actual Behavior

The package tests report PASS, then the checked allocator finalizer panics with a 27-byte allocation that was not freed. The allocation originates in fileservice.(*IOEntry).prepareData, called by lazyCacheFS.readCachedFile from TestLazyCacheFSReadsMagicPrefixedRemoteObjectsWithoutLocalChecksum. This fails the whole UT Coverage producer job and consequently the downstream coverage aggregation job.

Expected Behavior

The test must release all IOEntry data/deallocator ownership before completion and the package must exit successfully under the checked allocator.

Steps to Reproduce

  1. Run the UT Coverage workflow with the checked allocator enabled.
  2. Execute github.com/matrixorigin/matrixone/pkg/tools/toolfs.
  3. Observe the package print PASS, followed by panic: missing free: ... size 27.

Additional information

Allocation stack:

fileservice.(*IOEntry).prepareData (pkg/fileservice/io_entry.go:119)
fileservice.(*IOEntry).ReadFromOSFile (pkg/fileservice/io_entry.go:59)
toolfs.(*lazyCacheFS).readCachedFile (pkg/tools/toolfs/lazy_cache_fs.go:379)
toolfs.(*lazyCacheFS).Read (pkg/tools/toolfs/lazy_cache_fs.go:140)
TestLazyCacheFSReadsMagicPrefixedRemoteObjectsWithoutLocalChecksum (pkg/tools/toolfs/lazy_cache_fs_test.go:398)

The failing PR changes only frontend prepared-parameter and SQL-plan DECIMAL handling; it does not touch or import pkg/tools/toolfs.

Activity

  1. added
    kind/bug
    on Aug 14, 2026
  2. self-assigned this
    on Aug 14, 2026
  3. added
    severity/s0
    and removed on Aug 14, 2026
  4. gouhongshen commented on Nov 11, 2026

    @gouhongshen
    Contributor

    Recurrence on 4.2-dev in #32577, head 40faf2e589cc8e8504676ed85c8bb4acf94da943, workflow run 43070215395 attempt 1:

    • Failed job: Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86.
    • pkg/tools/toolfs printed PASS, then the checked-allocator finalizer panicked with missing free for a 24-byte allocation. The allocation stack is fileservice.(*IOEntry).prepareData <- ReadFromOSFile <- lazyCacheFS.readCachedFile <- TestLazyCacheFSEvictsOldEntriesWhenOverLimit at lazy_cache_fs_test.go:463.
    • This is the eviction-helper ownership leak covered by test: release lazy cache read vector #27147: the helper returns vec.Entries[0].Data without releasing the vector. That fix adds defer vec.Release() and returns a clone. Target 4.2-dev at 5be77ac92b64eba343f1659c21d24c886c6bb98d still lacks both changes.
    • This is unrelated to plan: bound composite unique index trailing IN lookups #32577: its diff from that base contains only pkg/sql/plan/apply_indices.go, its planner UT, and its SQL/BVT regression files. go list -mod=readonly -deps ./pkg/tools/toolfs does not include pkg/sql/plan.

    The complete uploaded diagnostics are in ut-coverage-diagnostics-attempt-1.

    Follow-up on the same run and head: Matrixone Coverage execution / Coverage failed at 2026-11-11T18:24:38Z with prerequisites_ready=false. Its terminal log states that a required producer did not publish a complete coverage profile and that no coverage verdict was calculated. This is downstream propagation of the UT Coverage failure above; it is not an independent failure caused by the planner-only #32577 diff.

    Final follow-up on the same run and head: CI Required failed at 2026-11-11T18:42:57Z after verifyResults received matrixone-ut-coverage: failure and matrixone-coverage-merge: failure; its terminal error is Error: matrixone-ut-coverage: failure. This required-check aggregation ran no independent product tests and adds no new product failure. Workflow run 43070215395 attempt 1 is now completed / failure.

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