Skip to content

MINOR: Remove ConsumerTestBuilder.java#16691

Merged
chia7712 merged 5 commits intoapache:trunkfrom
brenden20:RmCTB
Aug 5, 2024
Merged

MINOR: Remove ConsumerTestBuilder.java#16691
chia7712 merged 5 commits intoapache:trunkfrom
brenden20:RmCTB

Conversation

@brenden20
Copy link
Copy Markdown
Contributor

The purpose of this PR is to remove ConsumerTestBuilder.java since it is no longer needed. The following PRs have eliminated the use of ConsumerTestBuilder:
#14930
#16140
#16200
#16312

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@brenden20
Copy link
Copy Markdown
Contributor Author

@chia7712 can you take a look at this PR? It is related to a recent PR that you had reviewed for me.

@chia7712
Copy link
Copy Markdown
Member

Sure, but I am going to travel to CommunityOverCode Asia 2024. Will take a look next Monday if this great patch is not merged 😄

@brenden20
Copy link
Copy Markdown
Contributor Author

Thank you! That will be no problem if it has to wait until Monday, I appreciate your help!

Comment on lines +79 to +83
private static final int DEFAULT_HEARTBEAT_INTERVAL_MS = 1000;
private static final int DEFAULT_MAX_POLL_INTERVAL_MS = 10000;
private static final long DEFAULT_RETRY_BACKOFF_MAX_MS = 1000;
private static final long DEFAULT_RETRY_BACKOFF_MS = 80;
private static final String DEFAULT_GROUP_ID = "group-id";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the share groups case, there is a ShareConsumerTestBuilder that already contains all these. I think we should use it here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Really the pattern established for the consumer tests ought to be adopted for share groups tests too. We are just starting to align them across the board.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sure, that makes total sense. My point is simply to keep the share tests using the ShareConsumerTestBuilder consistently, and not start partially migrating them as part of this PR.

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.

I updated the test to use ShareConsumerTestBuilder instead of ConsumerTestBuilder now. Let me know if that works, all tests still pass.

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@chia7712
Copy link
Copy Markdown
Member

chia7712 commented Aug 3, 2024

@brenden20 Could you please fix the import order?

@chia7712
Copy link
Copy Markdown
Member

chia7712 commented Aug 4, 2024

LGTM again. I will merge it tomorrow if there is no objection :)

@brenden20
Copy link
Copy Markdown
Contributor Author

@chia7712 sounds good, thank you!

@chia7712 chia7712 merged commit 0b78d84 into apache:trunk Aug 5, 2024
@brenden20 brenden20 deleted the RmCTB branch October 3, 2024 15:00
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Oct 17, 2024
….7.x (apache#16691)

Bump commonsIo to version 2.16.0 on branch 7.7.x
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.

4 participants