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

MINOR: Fix ClusterConnectionStatesTest.testSingleIP #14741

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

dajac
Copy link
Contributor

@dajac dajac commented Nov 11, 2023

This test fails because localhost resolved to more than one IP on the Ci. This patch updates the ClusterConnectionStatesTest.testSingleIP test to use a static resolver.

I was considering whether this test adds any value at all but it seems to ensure that the same ip address is used after reconnecting.

Committer Checklist (excluded from commit message)

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

Copy link
Contributor

@showuon showuon left a comment

Choose a reason for hiding this comment

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

LGTM! I also think this test doesn't have too much value. But let's fix it first. Thanks.

@vamossagar12
Copy link
Contributor

@showuon , I noticed the JDK21 build failed with [this-escape] possible 'this' escape before subclass is fully initialized. I created this PR to get around that issue. The classes in question in Streams merged yesterday. Let me know what you think.

@vamossagar12
Copy link
Contributor

@showuon , I noticed the JDK21 build failed with [this-escape] possible 'this' escape before subclass is fully initialized. I created this PR to get around that issue. The classes in question in Streams merged yesterday. Let me know what you think.

Actually ignore, found that this already fixes it.

@dajac dajac merged commit 49d3122 into apache:trunk Nov 13, 2023
1 check failed
@dajac dajac deleted the fix-single-ip branch November 13, 2023 09:15
@jolshan
Copy link
Contributor

jolshan commented Nov 13, 2023

Shall we backport this to 3.6 as well? Maybe not a huge deal, but I see it causing some issues there too.

lucasbru pushed a commit to lucasbru/kafka that referenced this pull request Dec 29, 2023
This test fails because `localhost` resolved to more than one IP on the Ci. This patch updates the ClusterConnectionStatesTest.testSingleIP test to use a static resolver.

Reviewers: Luke Chen <[email protected]>
rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request Jan 2, 2024
This test fails because `localhost` resolved to more than one IP on the Ci. This patch updates the ClusterConnectionStatesTest.testSingleIP test to use a static resolver.

Reviewers: Luke Chen <[email protected]>
yyu1993 pushed a commit to yyu1993/kafka that referenced this pull request Feb 15, 2024
This test fails because `localhost` resolved to more than one IP on the Ci. This patch updates the ClusterConnectionStatesTest.testSingleIP test to use a static resolver.

Reviewers: Luke Chen <[email protected]>
clolov pushed a commit to clolov/kafka that referenced this pull request Apr 5, 2024
This test fails because `localhost` resolved to more than one IP on the Ci. This patch updates the ClusterConnectionStatesTest.testSingleIP test to use a static resolver.

Reviewers: Luke Chen <[email protected]>
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