Changed deprecated BrokerClient#17846
Conversation
kfaraz
left a comment
There was a problem hiding this comment.
Please use BrokerClient and not the impl class BrokerClientImpl.
Please build Druid and test out your changes before marking your PR ready for review.
The current set of changes is sure to break compilation since you haven't changed any of the call sites that create a SegmentLoadStatusFetcher.
|
Thank you for the feedback I sort of overlooked some issues but I'll try to fix them. Apologies for that. |
|
@kfaraz Build is now successful and tests are passing. I need some help with testing it on a cluster so any guidance would be appreciated. |
|
I am aware of the failing static check I will fix it by tomorrow. |
kfaraz
left a comment
There was a problem hiding this comment.
The current implementation is not correct since it uses the /sql/task endpoint instead of /sql.
kfaraz
left a comment
There was a problem hiding this comment.
Thanks for the quick fix, @akshatmardia !
I have left some final suggestions.
|
@kfaraz Appreciate the suggestions. I've pushed the changes but I'm confused as to why the build is failing. |
|
@akshatmardia , the build failure is unrelated to your changes. |
|
Merged since failure was unrelated and is being tackled in a separate PR #17867 |
In apache#17846, SegmentLoadStatusFetcher was changed to send a resultFormat of "text/plain" rather than "objectLines". This effectively broke the feature of waiting for load status, since the load status would always be FAILED.
In #17846, SegmentLoadStatusFetcher was changed to send a resultFormat of "text/plain" rather than "objectLines". This effectively broke the feature of waiting for load status, since the load status would always be FAILED.
Fixes #17435.
Description
Changed the deprecated BrokerClient to the new one
Release note
Key changed/added classes in this PR
org.apache.druid.discovery.BrokerClienttoorg.apache.druid.sql.client.BrokerClientand updated how it is usedThis PR has: