Repository navigation
Open
Description
Summary
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-kernel. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-kernel) is fixed, then flips green as a tripwire.
Findings
- CLOUDFETCH-018 [sea]: Retry-exhausted CloudFetch chunk download surfaces the bare HTTP-layer error ("Internal: HTTP 500: Internal Server Error"), naming neither the CloudFetch chunk download nor a result download, so the failure is indistinguishable from any other exhausted HTTP call
- failing test:
cloud_fetch_exhausted_download_error_names_download_and_last_cause(see the coverage PR diff undertests/)
- failing test:
- CLOUDFETCH-018: A retry-exhausted CloudFetch chunk download surfaces the bare HTTP-layer error ("Internal: HTTP 500: Internal Server Error") — it carries the status but names neither the CloudFetch chunk download nor a result download, so an operator cannot distinguish a broken cloud-storage download from any other exhausted HTTP call; enrich the error in place (download-context prefix + last cause) while preserving its type and error code
- CLOUDFETCH-018: CloudFetch retry-exhaustion error is not enriched with the download context: on budget exhaustion download_chunk_with_retry returns the raw HTTP error verbatim, so consumers see only the caller's entry point plus "HTTP 500" and cannot tell a broken result-chunk download from any other exhausted retry (the sibling download_deadline_error does name the chunk download)
Reproduce & Expected
CLOUDFETCH-018 — When a CloudFetch chunk download fails on EVERY attempt and the retry budget is exhausted, the error the driver raises must be DIAGNOSABLE: its message must identify that a result (CloudFetch) downlo…
Reproduce:
- trigger_count is deliberately high so the download NEVER succeeds and the
retry budget is genuinely exhausted (the same permanent-failure setup as
CLOUDFETCH-017, not CLOUDFETCH-010's one-shot 500). - A result large enough to be delivered via CloudFetch external links; drain it
and capture the error the drain raises, then inspect its message.
Expected (per the shared spec):
- full assertion contract:
result:
- label: drain
exception_thrown: true
- label: drain
error:
contains:
- cloudfetch
- result download
- download
- label: drain
error:
contains:
- '500'
not_contains:
- sig=
- x-amz-signature
- signature=
- label: drain
error_type_unchanged: true
protocol:
thrift:
- label: drain
cloud_downloads_min: 1
sea:
- label: drain
cloud_downloads_min: 1Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: [coverage] Conformance findings: CLOUDFETCH-017 (#471) databricks-sql-nodejs#567 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-kernel; the reference PR is for cross-referencing the intended behavior, NOT a change to this repo.
- Coverage PR carrying the reproducing xfail test(s): https://github.com/databricks/databricks-driver-test/pull/1975
Metadata
Metadata
Assignees
Labels
No labels
Activity