Skip to content

[coverage] Conformance findings: SESSION-231501 #646

Closed

Description

@oss-engineer-bot

Summary

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-nodejs. 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-nodejs) is fixed, then flips green as a tripwire.

Findings

  • SESSION-231501 [thrift]: Thrift connection close does not release the closed session's transport resources: 20 fresh open/close cycles leak exactly one OS handle each (/proc/self/fd 23 -> 43), eventually exhausting file descriptors; the SEA path on the same driver releases them
    • failing test: closeReleasesSessionTransportResources [thrift] (see the coverage PR diff under tests/)
  • SESSION-231501: Thrift connection close does not release the closed session's transport resources: 20 fresh open/close cycles leak exactly one OS handle each (/proc/self/fd 23 -> 43), so a long-lived process cycling sessions eventually hits "too many open files"; the SEA/kernel path on the same driver releases them (growth 1 over 20 cycles)

Reproduce & Expected

SESSION-231501 — Closing a session must release the per-session client resources it created at open -- its transport, that transport's HTTP client, and any per-session runtime/thread handles -- not merely mark the se…

Reproduce:

SELECT 1 AS test_value

Expected (per the shared spec):

  • result has exactly 1 row(s)
  • completes without an exception
  • [thrift] exactly 21 OpenSession call(s)
  • [thrift] exactly 21 CloseSession call(s)
  • [sea] exactly 21 CreateSession call(s)
  • [sea] exactly 21 DeleteSession call(s)
  • full assertion contract:
result:
- label: warmup
  row_count: 1
- label: cycles
  no_exception: true
- open_handle_growth:
    from: baseline_open_handles
    to: final_open_handles
    cycles: 20
    max: 8
protocol:
  thrift:
  - call_count:
      method: OpenSession
      expected: 21
  - call_count:
      method: CloseSession
      expected: 21
  sea:
  - call_count:
      operation: CreateSession
      expected: 21
  - call_count:
      operation: DeleteSession
      expected: 21

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