Skip to content

fix: surface plugin port-forward startup errors#22

Merged
adityathebe merged 2 commits into
mainfrom
fix/arthas-portforward-ready-error
May 21, 2026
Merged

fix: surface plugin port-forward startup errors#22
adityathebe merged 2 commits into
mainfrom
fix/arthas-portforward-ready-error

Conversation

@adityathebe
Copy link
Copy Markdown
Member

@adityathebe adityathebe commented May 21, 2026

Arthas and Go diagnostics session creation could wait for the full creation timeout when Kubernetes port-forward startup failed before becoming ready.

Their readiness waits only watched the ready channel and request timeout, so early ForwardPorts failures were masked as context deadline exceeded.

Watch the port-forward goroutine during readiness and return its actual error immediately. Store the final error on each forwarder so cleanup remains safe after early exits.

Arthas session creation could wait for the full creation timeout when port-forward startup failed before becoming ready.

Watch the port-forward goroutine while waiting for readiness and return its actual error immediately. Make Close safe after readiness observes an early exit by storing the final error on the forwarder.
The Go diagnostics plugin used the same port-forward readiness pattern as Arthas, so early ForwardPorts failures could be hidden until the session creation timeout.

Watch the forwarding goroutine while waiting for readiness and store the final error on the forwarder so startup failures are returned immediately.
@adityathebe adityathebe changed the title fix: surface Arthas port-forward startup errors fix: surface plugin port-forward startup errors May 21, 2026
@adityathebe adityathebe merged commit a48f323 into main May 21, 2026
23 checks passed
@adityathebe adityathebe deleted the fix/arthas-portforward-ready-error branch May 21, 2026 11:50
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