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

KAFKA-16331: Remove KafkaClientSupplier from unit tests #17330

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

mjsax
Copy link
Member

@mjsax mjsax commented Oct 1, 2024

We don't pass in a client-supplier into StreamsProducer any longer, so we can simplify multiple tests by removing client-supplier.

Should have done this in #17259 but missed it...

@mjsax mjsax added streams tests Test fixes (including flaky tests) labels Oct 1, 2024
@mjsax mjsax changed the title KAFKA-16331: Cleanup StreamsProducerTest KAFKA-16331: Cleanup StreamsProducerTest and RecordCollectorTest Oct 1, 2024
@mjsax mjsax changed the title KAFKA-16331: Cleanup StreamsProducerTest and RecordCollectorTest KAFKA-16331: Remove KafkaClientSupplier from unit tests Oct 1, 2024
Copy link
Member

@bbejeck bbejeck left a comment

Choose a reason for hiding this comment

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

Overall lgtm, but there are failing StreamsConfig tests - not sure if they are related or not

@@ -1950,16 +1938,6 @@ public static class ProductionExceptionHandlerMock implements ProductionExceptio
private TaskId expectedTaskId;
private SerializationExceptionOrigin expectedSerializationExceptionOrigin;

// No args constructor, referred in StreamsConfigTest
public ProductionExceptionHandlerMock() {
Copy link
Member

Choose a reason for hiding this comment

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

Why remove this? More for my own understanding

Copy link
Member Author

Choose a reason for hiding this comment

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

Ups. That's actually a slip... need to keep this. Good catch.

mjsax added 5 commits October 1, 2024 12:33
We don't pass in a client-supplier into `StreamsProducer` any longer,
so we can simplify `StreamsProducerTest` and remove client-supplier.
@mjsax mjsax force-pushed the kafka-16331-eosv1-cleanup-test branch from 0c87c42 to 5129fc7 Compare October 1, 2024 19:50
@mjsax mjsax merged commit ccdf176 into apache:trunk Oct 7, 2024
9 checks passed
@mjsax mjsax deleted the kafka-16331-eosv1-cleanup-test branch October 7, 2024 21:10
tedyu pushed a commit to tedyu/kafka that referenced this pull request Jan 6, 2025
We don't pass in a client-supplier into `StreamsProducer` any longer,
so we can simplify `StreamsProducerTest` and remove client-supplier.

Reviewers: Bill Bejeck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants