Repository navigation
Conversation
penghuo
commented
Sep 23, 2026
penghuo
commented
Sep 23, 2026
penghuo
commented
Sep 23, 2026
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
penghuo
commented
Sep 23, 2026
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Owner
Author
|
Addressed the follow-up review in
Added focused unit and REST IT coverage. The new IT methods were run with |
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Owner
Author
|
Follow-up simplification is in
Validation: 36 focused unit tests and 4 focused REST ITs passed; ITs used |
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
Signed-off-by: Peng Huo <penghuo@gmail.com>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is the first API implementation PR for asynchronous PPL queries, tracked by
opensearch-project/sql#5765andopensearch-project/sql#5796.It keeps synchronous
POST /_plugins/_pplbackward compatible and adds:wait_for_completion_timeoutandkeep_alive.This PR is final-result-only. It does not expose progress, partial results, paging, or delta delivery. Results remain limited by
plugins.query.size_limit. Retained-result byte accounting is follow-upopensearch-project/sql#5804.A failure before the submit wait expires returns the same HTTP error as synchronous PPL and retains no job. A retained failure is returned by GET as
200withstatus: FAILEDand the query error.Lifecycle/execution contract
PPLAsyncQueryServicedepends only on this contract. A successful final result must be visible throughcurrentResult()beforecompletion()completes normally.sequenceDiagram participant C as Client participant T as TransportPPLQueryAction participant L as PPLAsyncQueryService participant J as PPLAsyncQueryJob participant E as AsyncQueryExecution C->>T: POST query T->>L: start L->>J: create RUNNING job L->>E: start and attach alt completion before wait deadline E-->>L: completion L->>J: complete or fail L->>E: currentResult on success L-->>C: final result or HTTP error; no ID L->>E: close else wait deadline first L->>J: retain L-->>C: RUNNING with opaque ID C->>L: owner-routed, authorized GET L->>E: currentResult L-->>C: complete current snapshot endCore classes
AsyncQueryExecutionDefaultAsyncQueryExecutionPPLAsyncQueryServicePPLAsyncQueryJobPPLAsyncQueryUserTransportPPLAsyncQueryRoutingActionResult materialization occurs outside the job lock and GET dispatches it to the SQL worker pool.
plugins.ppl.enabled=falserejects submit, GET, and DELETE.plugins.ppl.query.timeoutstill limits execution;keep_alivecontrols retention only.Validation
Added lifecycle, authorization, request-validation, failure-metric, lease, and targeted REST integration tests. New ITs were run with
-DignorePrometheus.Related Issues
opensearch-project/sql#5796.opensearch-project/sql#5765.opensearch-project/sql#5804.Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.