-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Remove node
and id
from list task response
#31253
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
Comments
Pinging @elastic/es-distributed |
When we designed the response format in the very beginning. Why don't we use a format like this? Give node_id and task_id proper keys.
My use case was I need to extract the task_id |
The task id is meant to be an implementation detail. We can change how they are formed at any time so long as the old versions of Elasticsearch continue to route the task fetch requests to the right node. We have no plans to change it but we wanted to keep our options open. |
I have marked this as |
We continue to think this is a good idea, but the BWC issues make it tricky right now. However, we are forming a more general plan around breaking changes to response formats like this, and think that this work will let us address exactly this issue. Marking this as |
Pinging @elastic/es-distributed (Team:Distributed) |
@DaveCTurner do you remember why we think it is a good idea? We discussed this issue in smaller group today and our feeling is that this issue gained not much attraction in the last year and introduces some breaking/compatibility work that is maybe not worth to effort given our future prioritized work. I'm tempted to close it for now. |
Users should treat task IDs as an opaque string such as I'd think it would be ok to keep the |
👍 |
Right now the list tasks response returns both a
node
(string) and anid
(number). The trouble is that everywhere else we refer to the task id as a string. The fact that the list tasks response has both of these elements implies some contract for the shape of a task id when we do not intend for there to be one. Currently the task id consists of thenode
, a:
, and then theid
but we might change it in the future without any prior warning.I think we should remove
node
andid
from the lists tasks response entirely and users should use the object's name in the response as the id.This is what the response looks like now:
And I want it to be:
The text was updated successfully, but these errors were encountered: