Skip to content

feat(kernel): expose HTTP/2 opt-out - #580

Open
aakash-saravanan-db wants to merge 10 commits into
mainfrom
aakash-saravanan-db/feat/http2
Open

aakash-saravanan-db wants to merge 10 commits into
mainfrom
aakash-saravanan-db/feat/http2

Conversation

@aakash-saravanan-db

@aakash-saravanan-db aakash-saravanan-db commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Feature or gap

Expose HTTP/2 negotiation control for kernel connections.

What this PR addresses

Add WithEnableHTTP2 and the enableHttp2 DSN property. Preserve explicit false through 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, update KERNEL_REV and 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.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread README.md Resolved
Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at a3ada11: go.mod/go.sum still pin bindings v1.4.0, which lacks the setter, so kernel builds can't link.

@aakash-saravanan-db aakash-saravanan-db Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at d63cf2f: go.mod:65-71 still pins all seven bindings at v1.4.0. Merge stays blocked until the kernel release.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread kernel_http2_transport_test.go Resolved
Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at 1bbd011: go.mod/go.sum still pin the bindings at v1.4.0. This stays open until a kernel release that includes PR #483 is pinned.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at 1bbd011: bindings v1.4.0 and KERNEL_REV are unchanged. The kernel release with PR #483 is still pending.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@aakash-saravanan-db
aakash-saravanan-db force-pushed the aakash-saravanan-db/feat/http2 branch from e21d5f3 to 4b726db Compare November 19, 2026 17:46

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread kernel_http2_transport_test.go Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at 1bbd011: the bindings pins in go.mod/go.sum still need bumping to a kernel release that exports this symbol.

@aakash-saravanan-db
aakash-saravanan-db force-pushed the aakash-saravanan-db/feat/http2 branch from 7b4dfa8 to 1bbd011 Compare November 20, 2026 01:54

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread internal/backend/kernel/backend.go Outdated
}
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at 1f2066d: the bindings are still pinned at v1.4.0 with no go.sum, KERNEL_REV or header sync. Keeping this open until the kernel #483 release lands.

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>
@aakash-saravanan-db
aakash-saravanan-db force-pushed the aakash-saravanan-db/feat/http2 branch from 1f2066d to f8a5123 Compare November 20, 2026 08:07

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant