-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32482][SS][TESTS] Eliminate deprecated poll(long) API calls to avoid infinite wait in tests #29289
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
… avoid infinite wait in tests
|
Similar solution is planned on the driver side but that part is much more complicated and requires some time to answer all my questions and play around. |
|
Test build #126770 has finished for PR 29289 at commit
|
|
Test build #126773 has finished for PR 29289 at commit
|
HeartSaVioR
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.
LGTM, as tests passed and the direction is exactly same as what we discussed on migrating poll(0).
|
I'll leave the PR a day to see any further input, and merge tomorrow. Please take a look, or leave comment if anyone needs some time to review this. |
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.
Add a reference for #28871 which also related to deprecated poll(long) API.
zsxwing
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.
LGTM. Thanks!
|
retest this, please |
|
Looks Jenkins is out of the order. GitHub Actions build passed so should be good to merge and go ahead. |
|
Thanks @HyukjinKwon for reminding! I'll go ahead merging this. |
|
Thanks! Merged into master. |
|
Test FAILed. |
|
Thanks everybody to help me! |
|
I'm proceeding further with SPARK-32032 but from tomorrow I'm going to have 3 weeks vacation so the PR will be delayed a bit... |
What changes were proposed in this pull request?
Structured Streaming Kafka connector tests are now using a deprecated
poll(long)API which could cause infinite wait. In this PR I've eliminated these calls and replaced them withAdminClient.Why are the changes needed?
Deprecated
poll(long)API calls.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing unit tests.