You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bbdfe7e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(async-ppl): Return the job id for wait=0 when the engine fails first
With wait_for_completion_timeout=0, QueryJob.await subscribed to the
job's completion before taking the Running fast path. Calcite analysis
runs on the sql-worker thread, so a fast failure there (e.g. field not
found) could complete the job before the submitting thread reached
await(0). The subscription then fired inline and the submit returned the
engine error as a sync 400 instead of the job id, which flaked
AsyncPPLMultiNodeRoutingIT.failed_forwardsFromNonOwnerNodeToOwner.
Answer Running for a zero budget before subscribing, unless the runner
refused the query while starting. PPLQueryRunner treats a failure that
PPLService.execute reports on the calling thread before it returns (a
parse error or a saturated sql-worker pool, raised before the query is
handed to a worker) as a refusal and throws it from run(); engine
failures arrive on worker threads and complete the future. Refusals
still fail the submit inline (400/429); engine failures are reported
through GET. PPLService and thread pool usage are unchanged.
Signed-off-by: Peng Huo <penghuo@gmail.com>
0 commit comments