Repository navigation
Closed
Description
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 undertests/)
- failing test:
- 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_valueExpected (per the shared spec):
- result has exactly 1 row(s)
- completes without an exception
- [thrift] exactly 21
OpenSessioncall(s) - [thrift] exactly 21
CloseSessioncall(s) - [sea] exactly 21
CreateSessioncall(s) - [sea] exactly 21
DeleteSessioncall(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: 21Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: fix(session): free the transport when a session closes databricks-sql-kernel#434 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-nodejs; 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/2318
Metadata
Metadata
Assignees
Labels
No labels
Activity