-
Notifications
You must be signed in to change notification settings - Fork 14.9k
KAFKA-15816: Fix leaked sockets in streams tests #14769
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-15816: Fix leaked sockets in streams tests #14769
Conversation
Signed-off-by: Greg Harris <greg.harris@aiven.io>
mjsax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Very nice to get these leaks fixed.
| }) | ||
| ); | ||
|
|
||
| // do not use the harness streams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this comment means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this, let me know if the new comment makes more sense or if you'd like it removed.
I was indicating that the KafkaStreams that the test harness set up for the test won't be used, and a different KafkaStreams was being substituted.
streams/src/test/java/org/apache/kafka/streams/integration/MetricsReporterIntegrationTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Greg Harris <greg.harris@aiven.io>
mjsax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM.
|
The streams test failures appear unrelated, as they are not subclasses of the changed tests, and all streams tests pass locally. |
Signed-off-by: Greg Harris <greg.harris@aiven.io> Reviewers: Matthias J. Sax <mjsax@apache.org>
Signed-off-by: Greg Harris <greg.harris@aiven.io> Reviewers: Matthias J. Sax <mjsax@apache.org>
Signed-off-by: Greg Harris <greg.harris@aiven.io> Reviewers: Matthias J. Sax <mjsax@apache.org>
These tests leak sockets via Kafka clients, either directly or via KafkaStreams instances. The tests should close these resources when appropriate.
Committer Checklist (excluded from commit message)