-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Fix expiration time in ES|QL async #135209
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
5be018a
to
02e4013
Compare
Hi @dnhatn, I've created a changelog YAML for you. |
storeResults( | ||
searchTask, | ||
new StoredAsyncResponse<>(response, threadPool.absoluteTimeInMillis() + keepAlive.getMillis()), | ||
new StoredAsyncResponse<>(response, searchTask.getExpirationTimeMillis()), |
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.
These lines are the main fix.
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Thanks Nik! |
Currently, we incorrectly use the initial keep-alive value when creating the document for the async response. Instead, we should use the latest expiration from the search task, which is updated by get requests. Closes elastic#135169
Currently, we incorrectly use the initial keep-alive value when creating the document for the async response. Instead, we should use the latest expiration from the search task, which is updated by get requests. Closes elastic#135169
🔗 Link your GitHub account to AtlassianTo enable Code Reviewer, please link your GitHub account to your Atlassian account. Click here to connect your accounts This is a one-time setup that takes less than a minute. |
Currently, we incorrectly use the initial keep-alive value when creating the document for the async response. Instead, we should use the latest expiration from the search task, which is updated by get requests.
Closes #135169