Skip to content

[4.2-dev] fix(fileservice): release fallback read buffer in test - #33106

Merged
XuPeng-SH merged 1 commit into
4.2-devfrom
fix/33099-fileservice-test-release-42
Nov 23, 2026
Merged

XuPeng-SH merged 1 commit into
4.2-devfrom
fix/33099-fileservice-test-release-42

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #33099.

What this PR does / why we need it:

TestLocalFSFallsBackAfterInvalidRemoteCacheHit returns a successful local fallback read without releasing its owned IOVector buffer. Under checked allocation, the finalizer reports missing free and can panic in a later test, failing UT Coverage.

Add the missing vector.Release() after the successful read. This is a test-only ownership fix; production code is unchanged.

Validation:

  • Reproduced missing free on clean 4.2-dev baseline a9cd1796eced8ec4a32bc9cd1e577f18b73ea7e3 with checked allocation and 32 focused runs.
  • The same focused command passes 32/32 after this change with GOGC=10 MO_MALLOC_DEBUG=1, -tags matrixone_test, and coverage enabled.
  • .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=300s -short -tags matrixone_test ./pkg/fileservice
  • go vet -mod=readonly -tags matrixone_test ./pkg/fileservice
  • git diff --check
  • Independent code review: APPROVE, zero findings.

@mergify

mergify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH
XuPeng-SH merged commit b757475 into 4.2-dev Nov 23, 2026
@XuPeng-SH
XuPeng-SH deleted the fix/33099-fileservice-test-release-42 branch November 23, 2026 16:22

This branch was previously deployed

1 inactive deployment
ci — 5b09b573 Deployed Nov 23, 2026 by XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants