Skip to content

Revert PR #6558 on release/v1.16.x: fix SSH transfer regression in v1.16.0 - #6612

Merged
janniklasrose merged 3 commits into
release/v1.16.xfrom
cherry-pick-6608-release-v1.16.x
Sep 10, 2026
Merged

Revert PR #6558 on release/v1.16.x: fix SSH transfer regression in v1.16.0#6612
janniklasrose merged 3 commits into
release/v1.16.xfrom
cherry-pick-6608-release-v1.16.x

Conversation

@anton-107

Copy link
Copy Markdown
Contributor

Changes

Cherry-picks #6608 onto release/v1.16.x for the v1.16.1 patch release:

The revert applied to this branch with no conflicts and produces a patch identical to the one on main.

Why

v1.16.0 kills the SSH session on any continuous transfer larger than ~1 MiB. The replay buffer limit (proxyResumeBufferLimit = 1<<20) in proxy.go misreads in-flight data as a dead peer and exhausts the send window, ending the session prematurely.

Affected: databricks ssh connect --ide (100% repro after 15-30s, when the VS Code server transfers several MB during startup), and any SSH tunnel transfer larger than 1 MiB in either direction.

The reverted change bundled two independent fixes (pre-swap handover resilience and SSH telemetry categories) alongside the window limit. A targeted fix-forward on main (degrade a full window to non-resumable instead of killing the session) is the preferred long-term path; this patch-release branch takes the revert.

Tests

  • go build ./...
  • go test ./experimental/ssh/... ./libs/telemetry/... — pass
  • go test ./acceptance -run 'TestAccept/ssh' — pass
  • tools/validate_nextchanges.py — pass

This pull request and its description were written by Isaac.

anton-107 and others added 3 commits September 10, 2026 15:39
… of ending the session"

This reverts commit 3cee3a1.

Fixes v1.16.0 regression where continuous SSH transfers larger than ~1 MiB
kill the session. The replay buffer limit (proxyResumeBufferLimit = 1<<20)
in proxy.go misreads in-flight data as a dead peer and exhausts the send
window, ending the session prematurely.

Affected: databricks ssh connect --ide (100% repro after 15-30s when VS Code
server transfers several MB during startup), and any SSH tunnel transfer
larger than 1 MiB in either direction.

The reverted code did bundle two independent fixes (pre-swap handover
resilience and SSH telemetry categories) alongside the window limit. A
targeted fix-forward (degrade full window to non-resumable instead of
killing session) is being prepared in parallel as the preferred path.

Co-authored-by: Isaac <no-reply@databricks.com>
(cherry picked from commit fb3cd79)
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

Copy link
Copy Markdown
Contributor

Approval status: pending

/libs/telemetry/ - needs approval

Files: libs/telemetry/protos/ssh_tunnel.go
Suggested: @renaudhartert-db
Also eligible: @simonfaltum, @Divyansh-db, @hectorcast-db, @parthban-db, @tanmay-db, @tejaskochar-db, @mihaimitrea-db, @chrisst, @rauchy

General files (require maintainer)

17 files changed
Based on git history:

  • @janniklasrose -- recent work in libs/testserver/, .nextchanges/cli/, experimental/ssh/internal/proxy/

Any maintainer (@andrewnester, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: a3dc849

Run: 34497679474

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 275 15 6:37
💚​ aws windows 1 277 13 4:20
💚​ azure linux 1 274 15 5:31
💚​ azure windows 1 276 13 4:09
💚​ gcp linux 1 275 15 6:06
💚​ gcp windows 1 277 13 4:12
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:18 aws windows TestAccept
4:07 azure windows TestAccept
3:49 gcp windows TestAccept
2:17 gcp linux TestAccept
2:11 azure linux TestAccept
2:04 aws linux TestAccept

@janniklasrose
janniklasrose merged commit f319f7e into release/v1.16.x Sep 10, 2026
33 checks passed
@janniklasrose
janniklasrose deleted the cherry-pick-6608-release-v1.16.x branch September 10, 2026 16:10
deco-sdk-tagging Bot added a commit that referenced this pull request Sep 10, 2026
## Release v1.16.1

### CLI

 * Revert tunnel resume layer to fix SSH transfer regression in v1.16.0 affecting transfers larger than 1 MiB. ([#6608](#6608), [#6612](#6612))
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.

3 participants