Skip to content

Fix TopGroupsCollectorManager ignoring withinGroupOffset#15995

Open
gaobinlong wants to merge 2 commits intoapache:mainfrom
gaobinlong:fixTopGroups
Open

Fix TopGroupsCollectorManager ignoring withinGroupOffset#15995
gaobinlong wants to merge 2 commits intoapache:mainfrom
gaobinlong:fixTopGroups

Conversation

@gaobinlong
Copy link
Copy Markdown
Contributor

Description

When testing the newly introduced TopGroupsCollectorManager in this PR, found that TopGroupsCollectorManager hardcoded 0 as the withinGroupOffset when calling TopGroups.merge(), causing pagination within groups to be silently ignored, this PR adds withinGroupOffset field and constructor parameter into TopGroupsCollectorManager, also modify the unit test to make it cover non-zero withinGroupOffset case.

In addition, simplify the TopGroupsCollectorManager.reduce() method.

Signed-off-by: Binlong Gao <gbinlong@amazon.com>
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
@github-actions github-actions Bot added this to the 10.5.0 milestone Apr 29, 2026
@gaobinlong
Copy link
Copy Markdown
Contributor Author

Hi @javanna , could you help to review this PR? Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant