Skip to content

Fix some bugs in tombstone writer - #19075

Merged
mergify[bot] merged 5 commits into
matrixorigin:mainfrom
XuPeng-SH:refactor-tombstone-read
Sep 29, 2024
Merged

mergify[bot] merged 5 commits into
matrixorigin:mainfrom
XuPeng-SH:refactor-tombstone-read

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:

issue #18631

What this PR does / why we need it:

  1. fix some bugs in the writer for the following data migration
  2. refactor some api
  3. remove unused code

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Sep 29, 2024
@mergify mergify Bot added kind/bug Something isn't working kind/refactor Code refactor labels Sep 29, 2024
@mergify
mergify Bot merged commit ff2c589 into matrixorigin:main Sep 29, 2024
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
1. fix some bugs in the writer for the following data migration
2. refactor some api
3. remove unused code

Approved by: @LeftHandCold, @ouyuanning, @triump2020, @m-schen
XuPeng-SH pushed a commit that referenced this pull request Sep 1, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue #26870
issue #27407

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

The production error-propagation fix for `objectWriterV1.Write` and
`WriteWithoutSeqnum` already landed incidentally in #26616, but its
regression
test covered only `Write`.

Expand the deterministic malformed-vector regression into a table that
exercises
both current public `AddBlock` wrappers. Each entry point must return
the
serialization error and a nil block instead of advertising an unaccepted
block.

`WriteTombstone` is intentionally not included: it was removed from the
current
writer path by #19075. `WriteSubBlock` already returns the lower-level
error
directly and does not have the swallowed-error wrapper shape.

Tested with:

`go test -mod=readonly -v -count=1 -timeout=120s -run
'^TestObjectWriterPropagatesMarshalError$' ./pkg/objectio`

`go test -mod=readonly -count=1 -timeout=120s ./pkg/objectio`

Also validated with `go build`, `go vet`, and `git diff --check` for
`pkg/objectio`.

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#27949)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26870
issue matrixorigin#27407

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

The production error-propagation fix for `objectWriterV1.Write` and
`WriteWithoutSeqnum` already landed incidentally in matrixorigin#26616, but its
regression
test covered only `Write`.

Expand the deterministic malformed-vector regression into a table that
exercises
both current public `AddBlock` wrappers. Each entry point must return
the
serialization error and a nil block instead of advertising an unaccepted
block.

`WriteTombstone` is intentionally not included: it was removed from the
current
writer path by matrixorigin#19075. `WriteSubBlock` already returns the lower-level
error
directly and does not have the swallowed-error wrapper shape.

Tested with:

`go test -mod=readonly -v -count=1 -timeout=120s -run
'^TestObjectWriterPropagatesMarshalError$' ./pkg/objectio`

`go test -mod=readonly -count=1 -timeout=120s ./pkg/objectio`

Also validated with `go build`, `go vet`, and `git diff --check` for
`pkg/objectio`.

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#27949)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26870
issue matrixorigin#27407

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

The production error-propagation fix for `objectWriterV1.Write` and
`WriteWithoutSeqnum` already landed incidentally in matrixorigin#26616, but its
regression
test covered only `Write`.

Expand the deterministic malformed-vector regression into a table that
exercises
both current public `AddBlock` wrappers. Each entry point must return
the
serialization error and a nil block instead of advertising an unaccepted
block.

`WriteTombstone` is intentionally not included: it was removed from the
current
writer path by matrixorigin#19075. `WriteSubBlock` already returns the lower-level
error
directly and does not have the swallowed-error wrapper shape.

Tested with:

`go test -mod=readonly -v -count=1 -timeout=120s -run
'^TestObjectWriterPropagatesMarshalError$' ./pkg/objectio`

`go test -mod=readonly -count=1 -timeout=120s ./pkg/objectio`

Also validated with `go build`, `go vet`, and `git diff --check` for
`pkg/objectio`.

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#27949)

## What type of PR is this?

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

## Which issue(s) this PR fixes:

issue matrixorigin#26870
issue matrixorigin#27407

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

The production error-propagation fix for `objectWriterV1.Write` and
`WriteWithoutSeqnum` already landed incidentally in matrixorigin#26616, but its
regression
test covered only `Write`.

Expand the deterministic malformed-vector regression into a table that
exercises
both current public `AddBlock` wrappers. Each entry point must return
the
serialization error and a nil block instead of advertising an unaccepted
block.

`WriteTombstone` is intentionally not included: it was removed from the
current
writer path by matrixorigin#19075. `WriteSubBlock` already returns the lower-level
error
directly and does not have the swallowed-error wrapper shape.

Tested with:

`go test -mod=readonly -v -count=1 -timeout=120s -run
'^TestObjectWriterPropagatesMarshalError$' ./pkg/objectio`

`go test -mod=readonly -count=1 -timeout=120s ./pkg/objectio`

Also validated with `go build`, `go vet`, and `git diff --check` for
`pkg/objectio`.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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 kind/refactor Code refactor size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants