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 eb5e16d
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 now calls a new
PPLService.submit, which throws failures raised on the submitting thread
(parse errors, a saturated sql-worker pool) instead of passing them to
the listener, so QueryJob can tell a refusal from an engine failure.
Refusals still fail the submit inline (400/429); engine failures are
reported through GET. Thread pool usage is unchanged.
Signed-off-by: Peng Huo <penghuo@gmail.com>
0 commit comments