Repository navigation
fix(telemetry): emit delete session from C ABI close - #300
Conversation
RCA: Go kernel happy path missed
|
|
CI follow-up: all compile-bearing failures had the same root cause, |
Signed-off-by: Jay Xiao <jay.xiao@databricks.com>
Signed-off-by: Jay Xiao <jay.xiao@databricks.com>
a3bbe7f to
839fd17
Compare
Summary
kernel_session_close()to drive the awaitedSession::close()path so C ABI consumers emit and flushDELETE_SESSIONtelemetry.CREATE_SESSION+DELETE_SESSIONexport on close.Session::initiate_delete()wrapper so-D warningsCI builds stay clean.RCA
Covers RCA 03: Go kernel happy path fully drained results and emitted
CREATE_SESSION/EXECUTE_STATEMENT, but missedDELETE_SESSIONbecause the Go kernel backend closes through the C ABI and the C ABI used fire-and-forgetSession::initiate_delete().Stack
feat(telemetry): add circuit breaker)mainbut is based on Phase 8 for stacked validation.Flow
sequenceDiagram participant Go as Go driver CloseSession participant CABI as kernel_session_close participant Rust as Session::close participant Server as SEA DeleteSession participant Telemetry as Telemetry runtime Go->>CABI: kernel_session_close(session) CABI->>Rust: block_on_ffi(Session::close) Rust->>Server: DeleteSession Server-->>Rust: success Rust->>Telemetry: emit DELETE_SESSION Rust->>Telemetry: finish/flush CABI-->>Go: KernelStatusCode::SuccessTests
cargo +stable fmt --all -- --checkcargo test kernel_session_close_exports_delete_session_telemetry --lib --lockedcargo test is_open_flips_true_to_false_on_delete --lib --lockedcargo clippy --all-targets -- -D warningscargo test c_abi --lib --lockedcargo test telemetry --lib --locked