Skip to content

[coverage] Conformance findings: CLOUDFETCH-017 #218

Closed

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-017: A PERSISTENTLY failing CloudFetch chunk download (HTTP 500 on every presigned-URL GET) is retried without bound: the consumer's drain never returns (still blocked after 75s, ~7 download attempts observed) instead of charging each completed download failure against the download attempt budget and surfacing a terminal error. Same non-termination class as databricks-odbc#144.

Reproduce & Expected

CLOUDFETCH-017 — A CloudFetch chunk download that fails PERSISTENTLY must become terminal: the driver charges every completed download failure against its download attempt budget, surfaces an error to the consumer, a…

Reproduce:

  • Every cloud-storage GET for the chunk fails with HTTP 500 for the whole test.
  • Execute a CloudFetch (external-links) query and drain the result. The drain
    must terminate with an error rather than hang; wrap it in a wall-clock bound
    so an unbounded-retry driver fails instead of running to the CI timeout.

Expected (per the shared spec):

  • full assertion contract:
result:
- exception_thrown: true
  description: 'The persistent download failure is propagated to the caller as an
    error.

    Message content is not asserted (drivers word cloud-download errors

    differently); the point is that the read terminates in failure, not that

    it returns partial rows or blocks.

    '
- cloud_download_count:
    min: 1
    max: 2
  description: "The failing chunk is downloaded at least once and NO MORE than the\n\
    configured download attempt budget. A driver that skips attempt\naccounting on\
    \ the stale-link path exceeds this bound (or never stops).\nA driver exposing\
    \ no attempt-budget knob asserts its own small fixed\nupper bound instead \u2014\
    \ the contract is that the count is BOUNDED, not\nthat it equals a particular\
    \ number.\n"
- elapsed_seconds_range:
    min: 0
    max: 120
    description: The failing drain terminates well inside the CI timeout.

Context

Activity

  1. vikrantpuppala commented on Aug 10, 2026

    @vikrantpuppala
    Collaborator

    Fixed by #228 — this is the same root cause as databricks-odbc#226 (that one is CLOUDFETCH-017 observed through the ODBC surface; this is the kernel engine itself).

    Why #206 didn't close it: #206 bounded the CloudFetch provider retry loop (CloudFetchConfig::max_retries), but each provider attempt's chunk download goes through the HTTP client's own retry layer, which inherited the global default (5 retries / 900s overall_timeout) with no CloudFetch override in production. The two budgets multiply (~30 attempts, escalating backoff), so a persistently-failing download still blocks the drain well past the bound — which is exactly why this issue was filed on 2026-08-06, after #206 merged (2026-07-31), and why the drain was still observed hanging (~75s, ~7 attempts).

    Tellingly, the kernel's own coverage test for this (databricks-driver-test#1136) only passes because it builds the session with fast_retry_http_config(0), i.e. it manually disables the inner HTTP-layer retry so only the provider budget applies. #228 makes that the production default via a fixed RetryConfigOverrides for the CloudFetch category (0 HTTP-level retries, 20s wall-clock bound), mirroring the existing Auth fast-fail override.

    Live-verified end-to-end (ODBC proxy harness, persistent 500): drain went from hanging 186s → terminal error in ~14s; recovery cases still pass. Kernel tests: retry_config 14/14, cloudfetch 81/81 (incl. #206's test).

    Once #228 merges, the coverage tripwire in #1136 should flip green without needing fast_retry_http_config(0) — that override can be dropped from the test as the confirmation.

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