You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes the following misalignment:
1. drainLoop in GroupByMain does s.request(e) when e groups are
produced to the downstream. Each group at the moment has at least 1
element enqueued into it.
2. When UnicastGroupedFlux consumes elements for the first time, it
requests the first element and does main.s.request(e) where e covers
the first element
3. That said that GroupByMain fulfilled the demand for the first
element and then UnicastGroupedFlux does the same for the second time.
It leads that for each group we have 1 extra demand which then ends up
with overflow.
4. To avoid that, this PR adds isFirstRequest check which allows
removing that redundant demand for the first element on the first
requestN
Signed-off-by: Oleh Dokuka [email protected]
0 commit comments