Repository navigation
feat(kernel): expose HTTP/2 opt-out - #580
aakash-saravanan-db wants to merge 10 commits into
Conversation
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 1 Low
Needs changes: 1 high and 1 low concern. The option plumbing, pointer semantics and tests look correct, but the new ABI call cannot link against the pinned v1.4.0 bindings. Nit: the EnableHTTP2DSN "inert" disposition entry has no explanatory comment, unlike the entries around it.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The PR calls kernel_session_config_set_http2_enabled, but go.mod still pins the kernel bindings at v1.4.0. Unless that release exports the symbol, kernel builds fail to link. Bump the bindings pins in go.mod and go.sum to a release that includes the setter.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Confirmed: the currently pinned binding does not provide the new setter, so the standard kernel CI build is blocked. The PR description explicitly requires the matching native API before merge and release. The coordinated kernel release must supply that dependency; this change does not invent a release version or add an older-kernel fallback.
There was a problem hiding this comment.
Still open at a3ada11: go.mod/go.sum still pin bindings v1.4.0, which lacks the setter, so kernel builds can't link.
There was a problem hiding this comment.
This is a merge prerequisite. The pinned source 0b5d0edf lacks the setter. After the kernel release, update all seven binding module pins and go.sum, update KERNEL_REV, copy the full released header, and validate a standard tagged build without local overrides. Source-built validation does not establish released-artifact compatibility.
The current standard tagged CI build now confirms the missing API: could not determine what C.kernel_session_config_set_http2_enabled refers to. The header is synchronized from the old source pin during that build. The source/header and published-module updates must land together.
There was a problem hiding this comment.
Still open at d63cf2f: go.mod:65-71 still pins all seven bindings at v1.4.0. Merge stays blocked until the kernel release.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 1 Low
One high concern: the new native symbol has no released bindings pin. Otherwise the option/DSN plumbing, DeepCopy, Thrift rejection and tests look correct. Nit: the EnableHTTP2DSN disposition entry in kernel_config_test.go has no rationale comment, unlike its siblings.
This overview is Claude Opus 5.5's initial take; GPT-6.1 Sol added findings it doesn't mention — see the findings below.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The cgo shim now references kernel_session_config_set_http2_enabled, which this PR adds to the vendored header by hand. go.mod/go.sum still pin bindings v1.4.0 and KERNEL_REV is unchanged. If the pinned archives don't export the symbol, every databricks_kernel build fails to link. Bump the published bindings pins and sync the header from the release that ships the symbol.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Confirmed: the currently pinned binding does not provide the new setter, so the standard kernel CI build is blocked. The PR description explicitly requires the matching native API before merge and release. The coordinated kernel release must supply that dependency; this change does not invent a release version or add an older-kernel fallback.
There was a problem hiding this comment.
Still open at 15ed707: go.mod/go.sum still pin bindings v1.4.0, which lacks kernel_session_config_set_http2_enabled; kernel builds won't link until the bump lands.
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
Still open at 1bbd011: go.mod:65-71 pins bindings v1.4.0; this stays a merge blocker until a kernel release including PR 483 is pinned.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Blocking — 1 high issue: kernel builds won't link. The option wiring, the DeepCopy handling of the nil/false pointer, Thrift rejection and the tests look correct. The new symbol has no released bindings pin behind it, which matches the PR's own "blocked" status.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The cgo shim now calls kernel_session_config_set_http2_enabled unconditionally. The symbol was hand-added to the header, and go.mod still pins every bindings module at v1.4.0. I couldn't confirm that v1.4.0 lacks the symbol, but the repo's earlier lessons show the same failure, so default databricks_kernel builds likely fail to link. Bump the bindings pins in go.mod and go.sum to a release that exports the symbol, and sync the header from that release.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Blocked: 1 high concern. The option plumbing, DSN parsing, DeepCopy and the Thrift-path rejection look correct and are tested, but the new ABI symbol has no released bindings pin yet.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The cgo shim now references kernel_session_config_set_http2_enabled, but go.mod and go.sum still pin the kernel-bindings archives at v1.4.0 and the diff doesn't change KERNEL_REV. I couldn't confirm that v1.4.0 exports the symbol. If it doesn't, kernel-tagged builds against the published archives will fail to link. Publish matching bindings, bump the pins and KERNEL_REV in this change, and verify a build without local overrides.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Needs changes: 1 high concern. The option plumbing, DSN parsing, DeepCopy and Thrift rejection look correct and are tested, but the new C ABI symbol has no matching released bindings pin. Nit: the EnableHTTP2DSN disposition entry has no rationale comment, unlike the entries around it.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The cgo shim calls the new kernel_session_config_set_http2_enabled symbol, but the PR doesn't change the go.mod/go.sum pins (still bindings v1.4.0, which link by default). If v1.4.0 predates the setter, tagged kernel builds fail to link even when the option is unused. Bump the bindings pins to a release that exports the symbol, or hold the PR until that release exists. I couldn't inspect the archive, so the claim that v1.4.0 lacks the symbol is inferred.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
Still open at 1bbd011: go.mod/go.sum still pin bindings v1.4.0. This is blocked until a kernel release includes databricks-sql-kernel#483.
e21d5f3 to
4b726db
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 1 Low
Needs changes: 1 high concern. The option, DSN, DeepCopy and Thrift-rejection wiring all look correct and are tested. The concern is linking: the new C symbol isn't backed by an updated kernel-bindings pin in go.mod. Nit: the EnableHTTP2DSN entry in kernel_config_test.go has no rationale comment, unlike its sibling entries.
This overview is Claude Opus 5.5's initial take; GPT-6.1 Sol added findings it doesn't mention — see the findings below.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The shim now calls the new kernel_session_config_set_http2_enabled symbol, but go.mod/go.sum still pin kernel-bindings at v1.4.0, so a default databricks_kernel build may fail to link if that archive lacks it. Bump the bindings pins to a release that exports the symbol in the same change. I couldn't inspect the archive, so this is unverified.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
Still open at 1bbd011: go.mod/go.sum still pin kernel-bindings v1.4.0; this needs a release that exports kernel_session_config_set_http2_enabled.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Needs a dependency bump before merge: 1 high concern. The new C ABI setter is called, but the pinned kernel bindings archive predates kernel #483. The option, DSN, DeepCopy and Thrift-rejection wiring and their tests look correct.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The shim calls the new ABI symbol kernel_session_config_set_http2_enabled, but the diff leaves the bindings modules pinned at v1.4.0 in go.mod/go.sum. Default databricks_kernel builds link the published archive, which probably lacks the symbol, so they would fail to link. Bump the bindings pins to a release that exports it, or hold the PR until one exists.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at internal/backend/kernel/backend.go:272. Blocked on a kernel release that includes databricks/databricks-sql-kernel#483; the dependency and generated-file updates listed in that thread remain required before merge.
There was a problem hiding this comment.
Still open at 1bbd011: the bindings pins in go.mod/go.sum still need bumping to a kernel release that exports this symbol.
7b4dfa8 to
1bbd011
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Not mergeable yet: 1 high concern. The option plumbing, DSN parsing, DeepCopy and Thrift rejection all look correct and are tested. However, the native symbol is missing from the pinned v1.4.0 bindings, so tagged kernel builds will not link.
| } | ||
| if k.cfg.EnableHTTP2 != nil { | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The backend now calls kernel_session_config_set_http2_enabled, which was hand-added to the header. go.mod still pins all seven kernel bindings modules at v1.4.0 and the PR doesn't touch KERNEL_REV, so a build against the published archives probably fails to link. Bump the bindings pins and go.sum to a release that exports the symbol, sync KERNEL_REV, and use the published header.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at #580 (comment). This PR is blocked on the kernel #483 release; the seven bindings pins, go.sum and KERNEL_REV must be updated, and the complete header copied from that revision, before merge.
There was a problem hiding this comment.
Still open at 1f2066d: bindings pins, go.sum and KERNEL_REV aren't bumped yet, and the header is still hand-added; this blocks merge.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Not mergeable yet: one high concern about the native ABI pin. Option wiring, DSN forwarding, DeepCopy and the Thrift rejection look correct and are tested. Nit: the CHANGELOG entry has no PR reference, unlike its neighbours.
| return nil | ||
| } | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The new cgo call uses kernel_session_config_set_http2_enabled, which this PR adds to the header by hand. go.mod still pins the bindings modules at v1.4.0 and the PR doesn't bump them or KERNEL_REV, so default kernel-tagged builds likely fail to link. Bump all seven bindings pins, update go.sum, sync KERNEL_REV, and use the published header.
🔀 Found by both reviewers · confirmed by the judge
There was a problem hiding this comment.
Duplicate of the release prerequisite at #580 (comment). This PR is blocked on the kernel #483 release; the seven bindings pins, go.sum and KERNEL_REV must be updated, and the complete header copied from that revision, before merge.
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1f2066d to
f8a5123
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Blocked: the option wiring, DSN parsing, DeepCopy and Thrift rejection look correct and are tested. However, the C setter was hand-added to the header while the native bindings are still pinned at v1.4.0, so tagged kernel builds can't link until the pins are bumped.
| return nil | ||
| } | ||
| if err := call(func() C.KernelStatusCode { | ||
| return C.kernel_session_config_set_http2_enabled(cfg, C.bool(*k.cfg.EnableHTTP2)) |
There was a problem hiding this comment.
🟠 High — The new cgo call references kernel_session_config_set_http2_enabled, but go.mod and go.sum still pin all seven bindings modules at v1.4.0, and the PR doesn't bump KERNEL_REV. If v1.4.0 lacks the symbol, kernel-tagged builds fail to link. Bump the pins and checksums to the release that has the setter, and sync KERNEL_REV and the header.
🔀 Found by both reviewers · confirmed by the judge
Feature or gap
Expose HTTP/2 negotiation control for kernel connections.
What this PR addresses
Add
WithEnableHTTP2and theenableHttp2DSN property. Preserve explicitfalsethrough the C ABI and reject kernel-only options on Thrift. Direct transport tests compare default HTTP/2 with an explicit HTTP/1.1 opt-out and skip when a proxy is configured.Dependencies
Blocked on the merged release of kernel #483. Bump the seven native-module pins, regenerate
go.sum, updateKERNEL_REVand copy the complete header from that release. The current pinned header lacks the new setter, so standard tagged builds require these updates before merge.Tests and validation
Focused checks cover option classification, DSN/config forwarding, copying and both cgo transport cases against a source-built native archive. Validation against published bindings and scheduled execution remains open.
This pull request and its description were written by Isaac.