Skip to content

Conversation

@gharris1727
Copy link
Contributor

These tests leak sockets due to various typos. Additionally, many tests leaked sockets because MiniKdc stops asynchronously, leaving sockets open at the end of the test which are eventually cleaned up. This patch uses the alternative dispose method which awaits termination of the internal resources of the KDC before proceeding with the normal shutdown.

Committer Checklist (excluded from commit message)

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

Signed-off-by: Greg Harris <greg.harris@aiven.io>
@gharris1727 gharris1727 added core Kafka Broker tests Test fixes (including flaky tests) labels Nov 14, 2023
Copy link
Member

@mimaison mimaison 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

@gharris1727
Copy link
Contributor Author

Even through the CI appears to have all of these tests pass, I'm getting some strange failures locally that i'll need to investigate more before merge.

@gharris1727
Copy link
Contributor Author

It looks like the consistent failures I was seeing were present only on JDK21, didn't reproduce with JDK11, but were already present on trunk. I got some flakey failures with JDK11 locally, but they appear unrelated.

@gharris1727 gharris1727 merged commit 21227bd into apache:trunk Jan 12, 2024
showuon pushed a commit to showuon/kafka that referenced this pull request Jan 22, 2024
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
yyu1993 pushed a commit to yyu1993/kafka that referenced this pull request Feb 15, 2024
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
clolov pushed a commit to clolov/kafka that referenced this pull request Apr 5, 2024
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
Phuc-Hong-Tran pushed a commit to Phuc-Hong-Tran/kafka that referenced this pull request Jun 6, 2024
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants