Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve lookup of consumer-groups' consumers #102

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

GGabriele
Copy link
Collaborator

@GGabriele GGabriele commented Jun 11, 2024

This commit makes lookups for consumer-group's consumers more performant by adding indexes in the in-memory db, instead of relying on "manual" looping which is very expensive when several thousands of consumers exist.

Testing is provided by existing tests.

Summary

SUMMARY_GOES_HERE

Full changelog

  • [Implement ...]
  • [Fix ...]

Issues resolved

Fix #XXX

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

@GGabriele GGabriele marked this pull request as ready for review July 3, 2024 09:03
@GGabriele GGabriele requested a review from a team July 3, 2024 09:03
@GGabriele GGabriele force-pushed the fix/consumer-group-consumers-lookup branch from 9c95ea9 to 7a0d9f5 Compare July 3, 2024 09:10
This commit makes lookups for consumer-group's consumers
more performant by adding indexes in the in-memory db,
instead of relying on "manual" looping which is very
expensive when several thousands of consumers exist.
@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 41.23%. Comparing base (1047bbb) to head (c8fb83a).

Files Patch % Lines
pkg/state/consumer_group_consumers.go 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
+ Coverage   41.17%   41.23%   +0.05%     
==========================================
  Files          75       75              
  Lines       10807    10793      -14     
==========================================
  Hits         4450     4450              
+ Misses       5895     5881      -14     
  Partials      462      462              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

aboudreault
aboudreault previously approved these changes Jul 3, 2024
@GGabriele GGabriele merged commit c70e4ec into main Jul 3, 2024
42 checks passed
@GGabriele GGabriele deleted the fix/consumer-group-consumers-lookup branch July 3, 2024 15:28
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.

3 participants