Skip to content

Reproducer and fix for the groupBy operator upstream requests#2003

Merged
jponge merged 1 commit intosmallrye:mainfrom
ozangunalp:group_by_over_request
Nov 13, 2025
Merged

Reproducer and fix for the groupBy operator upstream requests#2003
jponge merged 1 commit intosmallrye:mainfrom
ozangunalp:group_by_over_request

Conversation

@ozangunalp
Copy link
Collaborator

It makes prefetch amount of request each time drain loop does not emit any items

Seen in testing a solution for quarkusio/quarkus#50595

@ozangunalp ozangunalp force-pushed the group_by_over_request branch from 2d7ad6e to 251d09f Compare November 11, 2025 10:06
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.11%. Comparing base (8c94ac3) to head (556bc46).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #2003      +/-   ##
============================================
- Coverage     89.15%   89.11%   -0.04%     
+ Complexity     3070     3068       -2     
============================================
  Files           409      409              
  Lines         13100    13099       -1     
  Branches       1652     1652              
============================================
- Hits          11679    11673       -6     
- Misses          805      808       +3     
- Partials        616      618       +2     
Files with missing lines Coverage Δ
...mallrye/mutiny/operators/multi/MultiGroupByOp.java 86.14% <ø> (-0.06%) ⬇️

... and 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@jponge jponge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot Ozan!

The groupBy operator was not correctly managing upstream requests.
It now makes prefetch amount of requests each time the drain loop
does not emit any items.

This commit includes both a reproducer and the fix for the issue.
@ozangunalp ozangunalp force-pushed the group_by_over_request branch from 251d09f to 556bc46 Compare November 13, 2025 10:31
@jponge jponge merged commit 0def1af into smallrye:main Nov 13, 2025
8 checks passed
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.

2 participants