You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "spoon-lz (via GitHub)" <gi...@apache.org> on 2026/10/12 08:44:35 UTC
[I] [rust]Preserve decoded Arrow batches when a later batch fails to decode [fluss]
spoon-lz opened a new issue, #4605:
URL: https://github.com/apache/fluss/issues/4605
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Fluss version
main (development)
### Please describe the bug 🐞
### Problem
The Rust Arrow batch scanner can decode batches successfully and advance the subscription offset, then encounter a decoding error in a later batch during the same poll.
The poll returns the error immediately instead of delivering the successfully decoded batches. As a result, the subscription offset can advance past data that the caller has not received.
This can happen both within one completed fetch and across completed fetches.
### Expected behavior
Return successfully decoded batches first, then report the subsequent decoding error on the next poll. If no successful batches have been collected, report the error immediately.
This follows the partial-result delivery policy of Java's Arrow batch scanner.
### Reproduction
Reproduced with a Rust unit test against main at commit `0a46dc544a5568729588e1ff8c710dffcaeac31a`:
1. Subscribe to a bucket at offset 0.
2. Queue a valid Arrow log batch containing one record at offset 0.
3. Queue a subsequent batch at offset 1 with an invalid Arrow payload.
4. Collect batches in a single poll.
The current implementation returns an Arrow parse error instead of the valid batch:
`Parser error: Invalid continuation marker: 0`
The subscription offset has already advanced to 1, although the caller did not receive the record at offset 0.
The same regression passes with the proposed fix: the first poll returns the valid batch, and the next poll reports the decoding error.
### Solution
Preserve successfully decoded Arrow batches when a later batch fails to decode, both within one completed fetch and across completed fetches.
- Return successful batches before reporting the later decoding error.
- Retain the error for the next poll.
- Report errors immediately when no successful batches are available.
- Advance offsets only through successfully decoded data.
- Discard deferred errors after unsubscribe or an offset change through the existing stale-fetch checks.
Limit the change to Arrow batch decoding failures. Fetch-response initialization errors, authorization errors, record-mode scanning, polling budgets, and remote-file management remain outside its scope.
No public API signature, configuration, protocol, or storage-format changes are required. An implementation and regression tests are prepared.
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [rust]Preserve decoded Arrow batches when a later batch fails to decode [fluss]
Posted by "fresh-borzoni (via GitHub) via issues" <is...@fluss.apache.org>.
fresh-borzoni closed issue #4605: [rust]Preserve decoded Arrow batches when a later batch fails to decode
URL: https://github.com/apache/fluss/issues/4605
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org