MINOR: Strengthen tests for replaying streams group assignment configs by gabriellefu · Pull Request #23872 · apache/kafka · GitHub
Skip to content

MINOR: Strengthen tests for replaying streams group assignment configs - #23872

Open
gabriellefu wants to merge 3 commits into
apache:trunkfrom
gabriellefu:minor_tests
Open

gabriellefu wants to merge 3 commits into
apache:trunkfrom
gabriellefu:minor_tests

Conversation

@gabriellefu

Copy link
Copy Markdown
Contributor

Follow-up to #23165. Test-only change.

  • testStreamsGroupEpochDoesNotIncreaseWhenEveryAssignmentConfigIsAtItsDefault now starts the group with
    non-default assignment configs, so it fails if replaying a record without configs does not reset them to the
    defaults.
  • Add testStreamsGroupEpochIncreasesWhenAnAssignmentConfigIsNotAtItsDefault: after the same replay, a group with
    num.standby.replicas=2 still bumps the group epoch, since the replayed defaults differ from the current configs.
  • Add AssignmentConfigsImplTest cases for fromRecord with an empty list and with an unknown key.
  • Use AssignmentConfigsImpl.DEFAULT instead of new AssignmentConfigsImpl(0, List.of()) in GroupMetadataManagerTest.

@github-actions github-actions Bot added tests Test fixes (including flaky tests) group-coordinator triage PRs from the community labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group-coordinator tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant