Skip to content

MINOR: Add tests for assignor stability and assignment reuse#21069

Merged
dajac merged 1 commit intoapache:trunkfrom
confluentinc:squah-test-assignor-properties
Dec 3, 2025
Merged

MINOR: Add tests for assignor stability and assignment reuse#21069
dajac merged 1 commit intoapache:trunkfrom
confluentinc:squah-test-assignor-properties

Conversation

@squah-confluent
Copy link
Copy Markdown
Contributor

@squah-confluent squah-confluent commented Dec 3, 2025

Add tests for common assignor properties: * Assignors are expected to
be stable. Once a balanced assignment has been computed, running the
assignor a second time should not change the assignment. * The
uniform assignors are expected to re-use the existing assignment maps
when member assignments are unchanged.

Reviewers: David Jacot [email protected]

Add tests for common assignor properties:
 * Assignors are expected to be stable. Once a balanced assignment has
   been computed, running the assignor a second time should not change
   the assignment.
 * The uniform assignors are expected to re-use the existing assignment
   maps when member assignments are unchanged.
@github-actions github-actions Bot added triage PRs from the community tests Test fixes (including flaky tests) group-coordinator labels Dec 3, 2025
private final String memberB = "B";
private final String memberC = "C";

@ParameterizedTest
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The range assignor doesn't re-use the assignment maps.

Copy link
Copy Markdown
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

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

lgtm

@dajac dajac added ci-approved and removed triage PRs from the community labels Dec 3, 2025
@dajac dajac merged commit 10ebba5 into apache:trunk Dec 3, 2025
26 checks passed
@dajac dajac deleted the squah-test-assignor-properties branch December 3, 2025 17:06
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
…21069)

Add tests for common assignor properties:   * Assignors are expected to
be stable. Once a balanced assignment has     been computed, running the
assignor a second time should not change     the assignment.   * The
uniform assignors are expected to re-use the existing assignment maps
when member assignments are unchanged.

Reviewers: David Jacot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved group-coordinator tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants