Repository navigation
Closed
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
- ERRORRECOV-014 [sea]: retry_max_wait < retry_min_wait is not corrected: Session::builder().http() skips validation and the first retry PANICS in calculate_backoff (
assertion failed: min <= maxfrom Ord::clamp), so a tuning typo lies dormant until a transient 503 then aborts the task instead of returning an error- failing test:
retry_wait_max_below_min_is_corrected_not_fatal(see the coverage PR diff undertests/)
- failing test:
- ERRORRECOV-014:
Session::builder().http()does not validateretry_max_wait < retry_min_wait(unlike the C-ABIkernel_session_config_set_retry_config, which pre-screens it): the session opens fine and then the FIRST retry PANICS incalculate_backoffwithassertion failed: min <= maxfromwait.clamp(min_wait, max_wait)(Ord::clamppanics when min > max). Strictly worse than an open-timeInvalidArgument— a tuning typo lies dormant until production hits a transient 503, then aborts the caller's task with an unhandleable panic instead of aResult. The bounds are a tuning hint and the ceiling is the driver's own, so the pair should be corrected (raise max to min) with a warning, matching the clamp disciplineapply_client_result_overridesalready uses forcloudfetch_max_chunks_in_memory.
Reproduce & Expected
ERRORRECOV-014 — Validate that a backoff-bound typo — a configured MAXIMUM wait below the configured MINIMUM — does NOT fail the connection.
Reproduce:
SELECT 1 AS test_valueExpected (per the shared spec):
- completes without an exception
- result has exactly 1 row(s)
- full assertion contract:
result:
- connection_not_null: true
description: "max < min is corrected, not rejected \u2014 the connection opens"
- no_exception: true
- row_count: 1
description: The retried query still succeeds under the corrected policy
protocol:
thrift:
- call_min:
method: ExecuteStatement
min: 2
sea:
- call_min:
operation: ExecuteStatement
min: 2Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: https://github.com/databricks/databricks-odbc/pull/181 — 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/1110
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(retry): correct retry_max_wait < retry_min_wait instead of panick…
vikrantpuppala commentedon Aug 10, 2026
closed by #233