- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28.9k
[SPARK-29027][TESTS] KafkaDelegationTokenSuite fix when loopback canonical host name differs from localhost #25803
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
Conversation
…nical host name differs from localhost
| @koertkuipers may I ask to test this PR on your environment? | 
| The code change looks good. Would like to see the result of CI build to ensure the change doesn't break existing ones. (CI build seems to be down right now.) | 
| Yeah, my intention is to test 3 ways (apart from my local clusters): 
 | 
| ok i will test | 
| Test build #110631 has finished for PR 25803 at commit  
 | 
| Kafka flakyness: | 
| retest this please | 
| Test build #110664 has finished for PR 25803 at commit  
 | 
| Same failure: it might be related to the change. Once the build fails for same reason it seems to be high likely due to the change. | 
| retest this, please | 
| Test build #110668 has finished for PR 25803 at commit  
 | 
| this fixed works for my environment. thanks! | 
| Glad to hear! If we run some more CI builds and verify they work without high flakiness, it should be good. | 
| retest this, please | 
| Test build #110677 has finished for PR 25803 at commit  
 | 
| retest this, please | 
| Test build #110707 has finished for PR 25803 at commit  
 | 
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.
LGTM
| Just to be on the safe side testing with maven as well | 
| retest this please | 
| Test build #110754 has finished for PR 25803 at commit  
 | 
| So all the tests pass what I wanted. Thanks @koertkuipers and @HeartSaVioR | 
| Merging to master. | 
What changes were proposed in this pull request?
KafkaDelegationTokenSuitefails on different platforms with the following problem:The problem reproducible if the
localhostandlocalhost.localdomainorder exhanged:The main problem is that
ZkClientconnects to the canonical loopback address (which is not necessarilylocalhost).Why are the changes needed?
KafkaDelegationTokenSuitefailed in some environments.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing unit tests on different platforms.