Skip to content

[coverage] Conformance findings: ERRORRECOV-014 #214

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

  • 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 <= max from 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 under tests/)
  • ERRORRECOV-014: Session::builder().http() does not validate retry_max_wait < retry_min_wait (unlike the C-ABI kernel_session_config_set_retry_config, which pre-screens it): the session opens fine and then the FIRST retry PANICS in calculate_backoff with assertion failed: min <= max from wait.clamp(min_wait, max_wait) (Ord::clamp panics when min > max). Strictly worse than an open-time InvalidArgument — a tuning typo lies dormant until production hits a transient 503, then aborts the caller's task with an unhandleable panic instead of a Result. 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 discipline apply_client_result_overrides already uses for cloudfetch_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_value

Expected (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: 2

Context

Activity

  1. vikrantpuppala commented on Aug 10, 2026

    @vikrantpuppala
    Collaborator

    closed by #233

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