Skip to content

test(fileservice): preserve full-object read policy contract - #29017

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
LeftHandCold:codex/preserve-full-object-policy-tests
Sep 16, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
LeftHandCold:codex/preserve-full-object-policy-tests

Conversation

@LeftHandCold

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Test and CI

Context

The reproduced mechanism from #28898 is already fixed by #28918, and #28888 covers full-object pending-publication rereads. The daily full-object assessment identified a policy boundary that needs to remain explicit.

PR #12198 intentionally made the default S3FS read a full-object read and enabled reuse through the disk-cache full-file artifact. A sparse row selection alone is not sufficient evidence to replace that default: legacy vector decoding still follows the whole-column path, and later projected columns can benefit from the same full object.

What this PR does

  • Adds a disk-backed S3FS regression guard that verifies Policy(0) requests [0, EOF) while SkipFullFilePreloads remains an explicit bounded-range opt-in.
  • Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so legacy TopN does not accidentally inherit the chunked path range policy.
  • Does not change production code, the default cache policy, prefetch behavior, DiskCache admission/eviction, or SQL semantics.

This is a follow-up safety guard, not a claim of an end-to-end Daily/Wiki performance improvement.

Validation

  • GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/objectio
  • GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/fileservice
  • GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/objectio
  • GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=600s ./pkg/fileservice
  • go vet -mod=readonly ./pkg/objectio ./pkg/fileservice with the repository CGo include/link environment
  • git diff --check

BVT: N/A. This change only adds internal FileService/ObjectIO regression coverage and does not change SQL behavior.

@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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep review @ b6609ea

结论:approve。

审查重点结论:

  • 这是有效的 full-object read policy 回归保护,不是绕过测试;
  • 默认策略实际验证 min=0、max=nil,即 [0, EOF),显式 SkipFullFilePreloads 验证 [123,130);冷缓存和真实 storage recorder 避免 cache hit 静默通过;
  • Legacy TopN 的 sparse、dense、explicit-range 三个场景覆盖了 policy 传递和结果正确性,tracked.live 归零;
  • 没有新增 sleep、轮询或压力循环;约 1 MiB 数据、两个顺序 subtest 和 6 行 TopN fixture,没有发现具体的额外耗时、内存、time.Now 路径碰撞或 flaky 风险;
  • fs、vector、MemoryFS、mpool 均有 cleanup,未发现具体资源泄漏或跨 subtest 污染;
  • exact-head Ubuntu UT、arm64 SCA、CI Required 和 preflight 均通过。

边界:测试证明的是 full-object 请求策略和 legacy TopN policy 传递,不单独证明 DiskCache reuse 的全部性能行为;这与 PR 声明一致。无生产代码或 SQL 行为变更,BVT N/A 合理。

@mergify

mergify Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@XuPeng-SH
XuPeng-SH merged commit 34f6c1b into matrixorigin:main Sep 16, 2026
17 of 20 checks passed
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…rigin#29017)

## What type of PR is this?

- [x] Test and CI

## Context

The reproduced mechanism from matrixorigin#28898 is already fixed by matrixorigin#28918, and
matrixorigin#28888 covers full-object pending-publication rereads. The daily
full-object assessment identified a policy boundary that needs to remain
explicit.

PR matrixorigin#12198 intentionally made the default S3FS read a full-object read
and enabled reuse through the disk-cache full-file artifact. A sparse
row selection alone is not sufficient evidence to replace that default:
legacy vector decoding still follows the whole-column path, and later
projected columns can benefit from the same full object.

## What this PR does

- Adds a disk-backed S3FS regression guard that verifies `Policy(0)`
requests `[0, EOF)` while `SkipFullFilePreloads` remains an explicit
bounded-range opt-in.
- Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so
legacy TopN does not accidentally inherit the chunked path range policy.
- Does not change production code, the default cache policy, prefetch
behavior, DiskCache admission/eviction, or SQL semantics.

This is a follow-up safety guard, not a claim of an end-to-end
Daily/Wiki performance improvement.

## Validation

- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1
-timeout=600s ./pkg/objectio`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1
-timeout=600s ./pkg/fileservice`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1
-timeout=600s ./pkg/objectio`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1
-timeout=600s ./pkg/fileservice`
- `go vet -mod=readonly ./pkg/objectio ./pkg/fileservice` with the
repository CGo include/link environment
- `git diff --check`

BVT: N/A. This change only adds internal FileService/ObjectIO regression
coverage and does not change SQL behavior.

Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…rigin#29017)

## What type of PR is this?

- [x] Test and CI

## Context

The reproduced mechanism from matrixorigin#28898 is already fixed by matrixorigin#28918, and
matrixorigin#28888 covers full-object pending-publication rereads. The daily
full-object assessment identified a policy boundary that needs to remain
explicit.

PR matrixorigin#12198 intentionally made the default S3FS read a full-object read
and enabled reuse through the disk-cache full-file artifact. A sparse
row selection alone is not sufficient evidence to replace that default:
legacy vector decoding still follows the whole-column path, and later
projected columns can benefit from the same full object.

## What this PR does

- Adds a disk-backed S3FS regression guard that verifies `Policy(0)`
requests `[0, EOF)` while `SkipFullFilePreloads` remains an explicit
bounded-range opt-in.
- Adds legacy ObjectIO TopN sparse/dense/explicit-range coverage so
legacy TopN does not accidentally inherit the chunked path range policy.
- Does not change production code, the default cache policy, prefetch
behavior, DiskCache admission/eviction, or SQL semantics.

This is a follow-up safety guard, not a claim of an end-to-end
Daily/Wiki performance improvement.

## Validation

- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1
-timeout=600s ./pkg/objectio`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -count=1
-timeout=600s ./pkg/fileservice`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1
-timeout=600s ./pkg/objectio`
- `GOMAXPROCS=4 .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1
-timeout=600s ./pkg/fileservice`
- `go vet -mod=readonly ./pkg/objectio ./pkg/fileservice` with the
repository CGo include/link environment
- `git diff --check`

BVT: N/A. This change only adds internal FileService/ObjectIO regression
coverage and does not change SQL behavior.

Co-authored-by: XuPeng-SH <[email protected]>

This branch was previously deployed

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

Labels

kind/test-ci size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants