Skip to content

Wrote test and fixed the bug for conflate chunk#3699

Open
ankitkumarrain wants to merge 1 commit intotypelevel:mainfrom
ankitkumarrain:confalte-chunk
Open

Wrote test and fixed the bug for conflate chunk#3699
ankitkumarrain wants to merge 1 commit intotypelevel:mainfrom
ankitkumarrain:confalte-chunk

Conversation

@ankitkumarrain
Copy link
Contributor

@ankitkumarrain ankitkumarrain commented Mar 17, 2026

Bug Number - 3661

The main cause of the bug was Channel.bounded when pulled, emits buffered values (additional value) that appends values from blocked producers. So, Channel.bounded(3) can emit (n+1), 4 elements for higher iterations.

Proposed fix : I made a fix Channel.bounded (chunklimit -1) ensures the emitted chunk never exceeds chunklimit.
Stream.eval(Channel.bounded[F2, Chunk[O]](chunkLimit- 1)).flatMap { chan =>
I wrote a test Conflate chunk respect chunklimit , for 1000 iterations which passed the test with the above fix.

@ankitkumarrain ankitkumarrain changed the title Wrote test and fixed the bug for confalte chunk Wrote test and fixed the bug for conflate chunk Mar 17, 2026
@ankitkumarrain
Copy link
Contributor Author

Hey Maintainers ,
@armanbilge , @mpilquist
I have made a pull request for issue-3661 (bug). I wanted a review to this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant