Skip to content

[coverage] Conformance findings: AUTH-219301 #487

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

  • AUTH-219301 [sea]: every closed session retains one socket descriptor (20 over 20 open/query/close cycles, unreaped after 100s idle) on both PAT and OAuth M2M paths, so a connection-per-request process still grows toward "Too many open files"; the OAuth provider's event-loop handles are released (eventfd/epoll flat) — the remaining non-OAuth HTTP client symptom (ES-2348909)
    • failing test: oauth_session_close_releases_auth_resources (see the coverage PR diff under tests/)
  • AUTH-219301: every closed session retains one socket descriptor — 20 sockets over 20 open/query/close cycles, still unreaped after 100s idle — identically on the PAT and OAuth M2M paths, so a connection-per-request process keeps growing toward "Too many open files"; the OAuth provider's event-loop handles ARE released now (eventfd/epoll counts flat), so this is the remaining non-OAuth HTTP client symptom (ES-2348909)

Reproduce & Expected

AUTH-219301 — Closing an OAuth-authenticated connection must release everything that connection's authentication path allocated — the auth HTTP client, its auth provider, and the sockets, event-loop descriptors an…

Reproduce:

SELECT 1 AS test_value
SELECT 1 AS test_value
SELECT 1 AS test_value
SELECT 1 AS test_value
SELECT CURRENT_USER() AS user

Expected (per the shared spec):

  • completes without an exception
  • completes without an exception
  • completes without an exception
  • result has exactly 1 row(s)
  • [thrift] exactly 20 OpenSession call(s)
  • [sea] exactly 20 CreateSession call(s)
  • full assertion contract:
result:
- label: pat_control
  no_exception: true
- label: oauth_cycles
  no_exception: true
- label: pat_control
  process_resource_growth:
    metric: open_file_descriptors
    baseline: pat_baseline
    after: pat_after
    max: 10
- label: oauth_cycles
  process_resource_growth:
    metric: open_file_descriptors
    baseline: oauth_baseline
    after: oauth_after
    max: 10
- label: oauth_cycles
  oauth_token_calls:
    min: 20
- label: after_cycles
  no_exception: true
- label: after_cycles
  row_count: 1
protocol:
  thrift:
  - label: oauth_cycles
    call_count:
      method: OpenSession
      expected: 20
  sea:
  - label: oauth_cycles
    call_count:
      operation: CreateSession
      expected: 20

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