Skip to content

fix(frontend): surface data branch file finalization errors - #26505

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-26054
Jul 31, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-26054

Conversation

@gouhongshen

@gouhongshen gouhongshen commented Jul 31, 2026 •

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 #26054

What this PR does / why we need it:

Root cause

DATA BRANCH DIFF ... OUTPUT FILE treated successful producer-side appends as a completed file write. In the streaming path, FileService.Write ran in a worker and its final result was consumed only by a no-result release callback. A file service could therefore consume the entire pipe, let every writeFile call succeed, and then return an error that the SQL statement could not observe. The mutable path similarly discarded the final Mutator.Close error. In both cases the success row was added before deferred finalization ran.

Changes

  • Make the common file-output finalizer return an error.
  • Await and return the worker's final FileService.Write result in the non-mutable path.
  • Return the final Mutator.Close result in the mutable path.
  • Explicitly finalize the output before adding the success result row, and retain deferred finalization for early-error paths.
  • Join an early statement error with any concurrent finalization error instead of discarding either one.
  • Finalize the writer before deleting partial output so cleanup cannot race an active stream.
  • Add focused tests for a file service that consumes the complete stream before failing, SQL-level error/result-row/cleanup behavior, mutable close failure propagation, success, immediate write failure, and setup failures.

No public API, SQL syntax, output format, or configuration behavior changes.

Tests

Pre-fix reproduction on main used a package-level file service wrapper that fully consumed each ReaderForWrite before returning mock late write failure. In 3/3 runs, both BEGIN and COMMIT writes returned nil, and the no-result release callback was the only observer of the failure.

Post-fix exhaustive verification on main@84f0d1116:

  • CGo-configured go build -mod=readonly ./pkg/frontend
  • CGo-configured go vet -mod=readonly ./pkg/frontend
  • Focused output-file regression set, -count=3 (9 exact tests)
  • .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=20m ./pkg/frontend (PASS, 24.471s)
  • Race selection was enumerated and contained all 7 new/modified behavioral tests.
  • Race measurements were T=0s to 0.04s; with B=30s, the adaptive rule selected N=100 for every test.
  • Each selected exact test passed independently with -race -count=100.
  • .agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=20m ./pkg/frontend (PASS, 37.818s)
  • git diff --check origin/main...HEAD

Rebase verification on main@0b8b53dff:

  • Focused output-file finalization set, -count=3 (8 exact tests)
  • .agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/frontend -count=1 (PASS, 33.817s)
  • CGo-configured go build -mod=readonly ./pkg/frontend
  • CGo-configured go vet -mod=readonly ./pkg/frontend
  • git diff --check origin/main...HEAD
  • git range-diff confirmed the rebase preserved the patch exactly.

BVT is not appropriate for this regression because the required boundary is a deterministic post-consumption FileService.Write or Mutator.Close fault, which the SQL BVT harness cannot inject. The package-level tests cover both file-service implementations and the SQL result-row boundary directly.

CI follow-up

Two attempt-1 Ubuntu/x86 UT failures were proven unrelated to this PR; in both jobs, pkg/frontend passed and the failures were in packages outside this two-file diff. The first failure exposed ISCP, embedded-cluster heartbeat, and lockservice signatures: the previously unreported ISCP cases were filed as #26517, while existing #26374 and #26441 / #26448 cover the other signatures. After rebasing, a second failure exposed current-main embedded-cluster heartbeat/reset cases and was filed as #26522. Per CI policy, the failed jobs for the current-head workflow were rerun exactly once; attempt 2 passed.

Residual risks

No known correctness gap remains in final write/close error propagation. Partial-output deletion retains the existing best-effort cleanup contract: this change guarantees cleanup is invoked after writer termination, but a backend Delete failure remains secondary to the original output failure and is not returned separately.

@gouhongshen

Copy link
Copy Markdown
Contributor Author

Investigated the failed Ubuntu/x86 UT job from run 30617011418. The PR changes only pkg/frontend/data_branch_output.go and its tests, and pkg/frontend passed in the job. Failures were in pkg/vm/engine/test, pkg/embed, and pkg/lockservice: ISCP timing assertions are tracked in #26517; the lockservice rolling-restart signature is covered by #26374; the embedded heartbeat starvation signature is covered by #26441 and its merged fix #26448. No unrelated change was added to this PR. The branch has been rebased onto current main, and focused tests, full frontend tests, CGo-configured build/vet, and patch-equivalence checks pass.

@gouhongshen

Copy link
Copy Markdown
Contributor Author

Investigated the second Ubuntu/x86 UT failure (job 91130900423). It is again outside this PR: the failed packages were pkg/vm/engine/test, pkg/embed, pkg/tests/ddl, and pkg/tests/features; pkg/frontend passed. The ISCP watermark/teardown-panic recurrence was added to #26517. The current-main recurrence of HAKeeper/LogService heartbeat resets across PITR, multi-cluster, Iceberg credential, and table-features tests is tracked in #26522. No PR code was changed.

@gouhongshen
gouhongshen marked this pull request as ready for review July 31, 2026 14:26
@gouhongshen
gouhongshen requested a review from XuPeng-SH as a code owner July 31, 2026 14:26
@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.

Approved exact head d7a02bfaa1a976c996766a6862a7d236e31826a6.

No blocking findings. I reviewed the complete finalization closure for both mutable and streaming file-service paths: final write/close errors reach the SQL caller before the success row, early errors are joined with finalizer errors, finalization remains single-owner, and partial-output cleanup runs only after the active writer has terminated.

Local verification passed: all 9 new/modified exact tests were enumerated; each measured T=0s with B=30s and passed independently under -race -count=100; full pkg/frontend passed under race and non-race; build, vet, and diff checks passed. Current CI is green and GitHub reports the PR mergeable.

@mergify mergify Bot added the queued label Jul 31, 2026
@mergify

mergify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-07-31 16:10 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-07-31 16:28 UTC · at 4bf4957ec879d2e9ef1888fbfee7df30098b2913

This pull request spent 17 minutes 51 seconds in the queue, with no time running CI.

Waiting for
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-success = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone CI / UT Test on Ubuntu/x86
    • check-skipped = Matrixone CI / UT Test on Ubuntu/x86
    • check-success = Matrixone CI / UT Test on Ubuntu/x86
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone CI / SCA Test on Linux/arm64
    • check-skipped = Matrixone CI / SCA Test on Linux/arm64
    • check-success = Matrixone CI / SCA Test on Linux/arm64
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Utils CI / Coverage
    • check-skipped = Matrixone Utils CI / Coverage
    • check-success = Matrixone Utils CI / Coverage
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-skipped = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-success = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
All conditions
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-success = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone CI / UT Test on Ubuntu/x86
    • check-skipped = Matrixone CI / UT Test on Ubuntu/x86
    • check-success = Matrixone CI / UT Test on Ubuntu/x86
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone CI / SCA Test on Linux/arm64
    • check-skipped = Matrixone CI / SCA Test on Linux/arm64
    • check-success = Matrixone CI / SCA Test on Linux/arm64
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Utils CI / Coverage
    • check-skipped = Matrixone Utils CI / Coverage
    • check-success = Matrixone Utils CI / Coverage
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-skipped = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-success = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-approved [🛡 GitHub branch protection]

Reason

Pull request #26505 has been dequeued

Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.

The author needs to enable "Allow edits from maintainers" on this pull request.

Failing checks:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

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

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit a7a04b4 into matrixorigin:main Jul 31, 2026
25 of 26 checks passed
@mergify mergify Bot added dequeued and removed queued labels Jul 31, 2026
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…igin#26505)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Fixes matrixorigin#26054

## What this PR does / why we need it:

### Root cause

`DATA BRANCH DIFF ... OUTPUT FILE` treated successful producer-side
appends as a completed file write. In the streaming path,
`FileService.Write` ran in a worker and its final result was consumed
only by a no-result `release` callback. A file service could therefore
consume the entire pipe, let every `writeFile` call succeed, and then
return an error that the SQL statement could not observe. The mutable
path similarly discarded the final `Mutator.Close` error. In both cases
the success row was added before deferred finalization ran.

### Changes

- Make the common file-output finalizer return an error.
- Await and return the worker's final `FileService.Write` result in the
non-mutable path.
- Return the final `Mutator.Close` result in the mutable path.
- Explicitly finalize the output before adding the success result row,
and retain deferred finalization for early-error paths.
- Join an early statement error with any concurrent finalization error
instead of discarding either one.
- Finalize the writer before deleting partial output so cleanup cannot
race an active stream.
- Add focused tests for a file service that consumes the complete stream
before failing, SQL-level error/result-row/cleanup behavior, mutable
close failure propagation, success, immediate write failure, and setup
failures.

No public API, SQL syntax, output format, or configuration behavior
changes.

### Tests

Pre-fix reproduction on `main` used a package-level file service wrapper
that fully consumed each `ReaderForWrite` before returning `mock late
write failure`. In 3/3 runs, both `BEGIN` and `COMMIT` writes returned
nil, and the no-result release callback was the only observer of the
failure.

Post-fix exhaustive verification on `main@84f0d11`:

- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- Focused output-file regression set, `-count=3` (9 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=20m
./pkg/frontend` (PASS, 24.471s)
- Race selection was enumerated and contained all 7 new/modified
behavioral tests.
- Race measurements were `T=0s` to `0.04s`; with `B=30s`, the adaptive
rule selected `N=100` for every test.
- Each selected exact test passed independently with `-race -count=100`.
- `.agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=20m
./pkg/frontend` (PASS, 37.818s)
- `git diff --check origin/main...HEAD`

Rebase verification on `main@0b8b53d`:

- Focused output-file finalization set, `-count=3` (8 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/frontend -count=1`
(PASS, 33.817s)
- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- `git diff --check origin/main...HEAD`
- `git range-diff` confirmed the rebase preserved the patch exactly.

BVT is not appropriate for this regression because the required boundary
is a deterministic post-consumption `FileService.Write` or
`Mutator.Close` fault, which the SQL BVT harness cannot inject. The
package-level tests cover both file-service implementations and the SQL
result-row boundary directly.

### CI follow-up

Two attempt-1 Ubuntu/x86 UT failures were proven unrelated to this PR;
in both jobs, `pkg/frontend` passed and the failures were in packages
outside this two-file diff. The first failure exposed ISCP,
embedded-cluster heartbeat, and lockservice signatures: the previously
unreported ISCP cases were filed as matrixorigin#26517, while existing matrixorigin#26374 and
matrixorigin#26441 / matrixorigin#26448 cover the other signatures. After rebasing, a second
failure exposed current-main embedded-cluster heartbeat/reset cases and
was filed as matrixorigin#26522. Per CI policy, the failed jobs for the current-head
workflow were rerun exactly once; attempt 2 passed.

### Residual risks

No known correctness gap remains in final write/close error propagation.
Partial-output deletion retains the existing best-effort cleanup
contract: this change guarantees cleanup is invoked after writer
termination, but a backend `Delete` failure remains secondary to the
original output failure and is not returned separately.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…igin#26505)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Fixes matrixorigin#26054

## What this PR does / why we need it:

### Root cause

`DATA BRANCH DIFF ... OUTPUT FILE` treated successful producer-side
appends as a completed file write. In the streaming path,
`FileService.Write` ran in a worker and its final result was consumed
only by a no-result `release` callback. A file service could therefore
consume the entire pipe, let every `writeFile` call succeed, and then
return an error that the SQL statement could not observe. The mutable
path similarly discarded the final `Mutator.Close` error. In both cases
the success row was added before deferred finalization ran.

### Changes

- Make the common file-output finalizer return an error.
- Await and return the worker's final `FileService.Write` result in the
non-mutable path.
- Return the final `Mutator.Close` result in the mutable path.
- Explicitly finalize the output before adding the success result row,
and retain deferred finalization for early-error paths.
- Join an early statement error with any concurrent finalization error
instead of discarding either one.
- Finalize the writer before deleting partial output so cleanup cannot
race an active stream.
- Add focused tests for a file service that consumes the complete stream
before failing, SQL-level error/result-row/cleanup behavior, mutable
close failure propagation, success, immediate write failure, and setup
failures.

No public API, SQL syntax, output format, or configuration behavior
changes.

### Tests

Pre-fix reproduction on `main` used a package-level file service wrapper
that fully consumed each `ReaderForWrite` before returning `mock late
write failure`. In 3/3 runs, both `BEGIN` and `COMMIT` writes returned
nil, and the no-result release callback was the only observer of the
failure.

Post-fix exhaustive verification on `main@84f0d11`:

- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- Focused output-file regression set, `-count=3` (9 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=20m
./pkg/frontend` (PASS, 24.471s)
- Race selection was enumerated and contained all 7 new/modified
behavioral tests.
- Race measurements were `T=0s` to `0.04s`; with `B=30s`, the adaptive
rule selected `N=100` for every test.
- Each selected exact test passed independently with `-race -count=100`.
- `.agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=20m
./pkg/frontend` (PASS, 37.818s)
- `git diff --check origin/main...HEAD`

Rebase verification on `main@0b8b53d`:

- Focused output-file finalization set, `-count=3` (8 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/frontend -count=1`
(PASS, 33.817s)
- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- `git diff --check origin/main...HEAD`
- `git range-diff` confirmed the rebase preserved the patch exactly.

BVT is not appropriate for this regression because the required boundary
is a deterministic post-consumption `FileService.Write` or
`Mutator.Close` fault, which the SQL BVT harness cannot inject. The
package-level tests cover both file-service implementations and the SQL
result-row boundary directly.

### CI follow-up

Two attempt-1 Ubuntu/x86 UT failures were proven unrelated to this PR;
in both jobs, `pkg/frontend` passed and the failures were in packages
outside this two-file diff. The first failure exposed ISCP,
embedded-cluster heartbeat, and lockservice signatures: the previously
unreported ISCP cases were filed as matrixorigin#26517, while existing matrixorigin#26374 and
matrixorigin#26441 / matrixorigin#26448 cover the other signatures. After rebasing, a second
failure exposed current-main embedded-cluster heartbeat/reset cases and
was filed as matrixorigin#26522. Per CI policy, the failed jobs for the current-head
workflow were rerun exactly once; attempt 2 passed.

### Residual risks

No known correctness gap remains in final write/close error propagation.
Partial-output deletion retains the existing best-effort cleanup
contract: this change guarantees cleanup is invoked after writer
termination, but a backend `Delete` failure remains secondary to the
original output failure and is not returned separately.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…igin#26505)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Fixes matrixorigin#26054

## What this PR does / why we need it:

### Root cause

`DATA BRANCH DIFF ... OUTPUT FILE` treated successful producer-side
appends as a completed file write. In the streaming path,
`FileService.Write` ran in a worker and its final result was consumed
only by a no-result `release` callback. A file service could therefore
consume the entire pipe, let every `writeFile` call succeed, and then
return an error that the SQL statement could not observe. The mutable
path similarly discarded the final `Mutator.Close` error. In both cases
the success row was added before deferred finalization ran.

### Changes

- Make the common file-output finalizer return an error.
- Await and return the worker's final `FileService.Write` result in the
non-mutable path.
- Return the final `Mutator.Close` result in the mutable path.
- Explicitly finalize the output before adding the success result row,
and retain deferred finalization for early-error paths.
- Join an early statement error with any concurrent finalization error
instead of discarding either one.
- Finalize the writer before deleting partial output so cleanup cannot
race an active stream.
- Add focused tests for a file service that consumes the complete stream
before failing, SQL-level error/result-row/cleanup behavior, mutable
close failure propagation, success, immediate write failure, and setup
failures.

No public API, SQL syntax, output format, or configuration behavior
changes.

### Tests

Pre-fix reproduction on `main` used a package-level file service wrapper
that fully consumed each `ReaderForWrite` before returning `mock late
write failure`. In 3/3 runs, both `BEGIN` and `COMMIT` writes returned
nil, and the no-result release callback was the only observer of the
failure.

Post-fix exhaustive verification on `main@84f0d11`:

- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- Focused output-file regression set, `-count=3` (9 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=20m
./pkg/frontend` (PASS, 24.471s)
- Race selection was enumerated and contained all 7 new/modified
behavioral tests.
- Race measurements were `T=0s` to `0.04s`; with `B=30s`, the adaptive
rule selected `N=100` for every test.
- Each selected exact test passed independently with `-race -count=100`.
- `.agents/skills/mo-dev/scripts/mo-cgo-test -race -count=1 -timeout=20m
./pkg/frontend` (PASS, 37.818s)
- `git diff --check origin/main...HEAD`

Rebase verification on `main@0b8b53d`:

- Focused output-file finalization set, `-count=3` (8 exact tests)
- `.agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/frontend -count=1`
(PASS, 33.817s)
- CGo-configured `go build -mod=readonly ./pkg/frontend`
- CGo-configured `go vet -mod=readonly ./pkg/frontend`
- `git diff --check origin/main...HEAD`
- `git range-diff` confirmed the rebase preserved the patch exactly.

BVT is not appropriate for this regression because the required boundary
is a deterministic post-consumption `FileService.Write` or
`Mutator.Close` fault, which the SQL BVT harness cannot inject. The
package-level tests cover both file-service implementations and the SQL
result-row boundary directly.

### CI follow-up

Two attempt-1 Ubuntu/x86 UT failures were proven unrelated to this PR;
in both jobs, `pkg/frontend` passed and the failures were in packages
outside this two-file diff. The first failure exposed ISCP,
embedded-cluster heartbeat, and lockservice signatures: the previously
unreported ISCP cases were filed as matrixorigin#26517, while existing matrixorigin#26374 and
matrixorigin#26441 / matrixorigin#26448 cover the other signatures. After rebasing, a second
failure exposed current-main embedded-cluster heartbeat/reset cases and
was filed as matrixorigin#26522. Per CI policy, the failed jobs for the current-head
workflow were rerun exactly once; attempt 2 passed.

### Residual risks

No known correctness gap remains in final write/close error propagation.
Partial-output deletion retains the existing best-effort cleanup
contract: this change guarantees cleanup is invoked after writer
termination, but a backend `Delete` failure remains secondary to the
original output failure and is not returned separately.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
ci — 4bf4957e Deployed Jul 31, 2026 by mergify[bot] via Matrixone Utils CI / Coverage #43902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: DATA BRANCH DIFF OUTPUT FILE can report success after a late write failure

3 participants