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

tests: refactor consumer group balancing test #16775

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Feb 28, 2024

Refactor consumer group balancing test to directly validate __consumer_offsets partition replicas placement instead of validating consumer groups coordinators.

Fixes: #9697

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

Refactor consumer group balancing test to directly validate
`__consumer_offsets` partition replicas placement instead of validating
consumer groups coordinators.

Fixes: redpanda-data#9697

Signed-off-by: Michal Maslanka <michal@redpanda.com>
f"coordinators of groups: {coord_groups}, "
f"groups: {len(groups)}, brokers: {len(self.redpanda.nodes)}, "
f"coord_density: {coord_density}, expected_coord_density: {expected_coord_density}"
for node, replicas in replicas_per_node.items():
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a waiter for this? I thought the first assignment is 'random' but the balancer eventually balances by domain which is when actual uniformity is achieved.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a data balance so it does it during the first assignment,

@bharathv
Copy link
Contributor

/ci-repeat 1
skip-unit
dt-repeat=30
tests/rptest/tests/consumer_group_balancing_test.py

@mmaslankaprv mmaslankaprv merged commit 599e82b into redpanda-data:dev Feb 29, 2024
17 of 18 checks passed
@mmaslankaprv mmaslankaprv deleted the fix-96967 branch February 29, 2024 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants