Skip to content

KAFKA-18267: Add unit tests for CloseOptions #19571

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

Merged
merged 9 commits into from
May 3, 2025

Conversation

frankvicky
Copy link
Contributor

@frankvicky frankvicky commented Apr 26, 2025

There is some redundant code that could be removed in CloseOptions.
This patch also adds unit tests for CloseOptions.

Reviewers: Ken Huang [email protected], PoAn Yang
[email protected], Chia-Ping Tsai [email protected]

@github-actions github-actions bot added triage PRs from the community consumer clients small Small PRs labels Apr 26, 2025
@frankvicky frankvicky requested a review from chia7712 April 26, 2025 04:37
Copy link
Collaborator

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@github-actions github-actions bot removed the triage PRs from the community label Apr 27, 2025
@@ -84,10 +77,7 @@ public static CloseOptions timeout(final Duration timeout) {
* @return a new {@code CloseOptions} instance with the specified group membership operation.
*/
public static CloseOptions groupMembershipOperation(final GroupMembershipOperation operation) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add unit test for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@frankvicky frankvicky requested a review from chia7712 May 2, 2025 10:00
@frankvicky frankvicky changed the title MINOR: Clean up CloseOptions KAFKA-18267: Add unit tests for CloseOptions May 2, 2025
@chia7712 chia7712 merged commit 93e65c4 into apache:trunk May 3, 2025
23 of 24 checks passed
shmily7829 pushed a commit to shmily7829/kafka that referenced this pull request May 7, 2025
There is some redundant code that could be removed in `CloseOptions`.
This patch also adds unit tests for CloseOptions.

Reviewers: Ken Huang <[email protected]>, PoAn Yang
<[email protected]>, Chia-Ping Tsai <[email protected]>
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.

4 participants