Skip to content

[coverage] Conformance findings: CLOUDFETCH-018 #438

Open

Description

@oss-engineer-bot

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 under tests/)
  • 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: 1

Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions