chore: do not assume all batches in stream fetch response are complete#4627
Merged
morenol merged 1 commit intofluvio-community:masterfrom Feb 1, 2026
Merged
Conversation
fraidev
approved these changes
Dec 31, 2025
Contributor
fraidev
left a comment
There was a problem hiding this comment.
LGTM! What happened with our tests? Would be good to run them to have sure there is no regression.
Collaborator
Author
|
Do you remember why we had to add this in #4522?: let mut decode = |data: &[u8]| -> Result<(), CompressionError> {
match records.decode(&mut &*data, 0) {
Ok(_) => Ok(()),
Err(err) if err.kind() == ErrorKind::UnexpectedEof => {
debug!("not enough bytes for decoding memory records from raw");
Ok(())
}
Err(err) => Err(err.into()),
}
};I think that the changes in crates/fluvio/src/consumer/mod.rs are not needed if we don't ignore the error there |
Contributor
|
The tests along with a lot of the workflows need to be simplified and decoupled from the old infra. There probably only a few little changes it looks like. |
Collaborator
Author
Sure, should we create a new docker hub org or publish the image on github packages? |
Contributor
|
I lean towards trying a github package first |
4391ad9 to
9f1fd48
Compare
4735576 to
1e57199
Compare
digikata
approved these changes
Feb 1, 2026
58bed8a to
d8e80a0
Compare
d8e80a0 to
dc70a1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix issue reported on discord with this code:
That is happening because we use next_offset_for_fetch which computes the offset based on metadata of last batch in response which is based on batch metadata. But if that batches does not decode correctly due to being truncated by SPU, the not decoded records from that batch are skipped.
Has some conflicts with #4522 not sure why there we had to ignore decoding errors from batches