-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Drop legacy results api #21772
Drop legacy results api #21772
Conversation
Same as in TaskResource
Still WIP |
Point the original endpoint to /v1/task/async
d973c89
to
16f963c
Compare
Ready for review |
@Path("{taskId}/results/{bufferId}/{token}") | ||
@Produces(PRESTO_PAGES) | ||
public void getResults( |
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.
@arhimondr
Why is this going way?
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.
It's an old implementation based on blocking IO. AsyncPageTransportServlet.java implements in in a non-blocking way. Semantic wise both are identical.
* Only prefix or suffix matching is allowed (e.g.: /v1/task/*, *\/suffix). | ||
* Hence a more nuanced matching and a forward is required. | ||
*/ | ||
public class AsyncPageTransportForwardFilter |
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.
Why not just implement the rename in one shot, as opposed to forwarding /v1/task
to /v1/task/async
? i.e. why not just use /v1/task
and remove this filter?
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.
Then all the requests starting with /v1/task
will be routed to the custom servlet, while requests other than /v1/task*/results/*
have to be routed to TaskResource
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.
I can't think of a better way of doing it.
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
Description
In favor of
/async
version. Point the original endpoint to /v1/task/async.Motivation and Context
Async getResults API has been enabled by default
Test Plan
CI
Contributor checklist
Release Notes