Skip to content

fix: make Arthas session creation async and idempotent#21

Merged
adityathebe merged 1 commit into
mainfrom
fix/async-arthas-session-create
May 21, 2026
Merged

fix: make Arthas session creation async and idempotent#21
adityathebe merged 1 commit into
mainfrom
fix/async-arthas-session-create

Conversation

@adityathebe
Copy link
Copy Markdown
Member

Arthas session creation can exceed ingress timeouts while attaching to a JVM, causing nginx 504s.

Make session-create return immediately with a creation job and let the UI poll session-creation-status until the session is ready. Reuse pending creation jobs and existing sessions per namespace/pod/container so multiple clients targeting the same pod do not spawn duplicate attach flows or port-forwards.

Arthas session creation can exceed ingress timeouts while attaching to a JVM, causing nginx 504 responses before the plugin finishes.

Return a creation job immediately, poll session-creation-status from the UI, and reuse pending jobs or active sessions per namespace/pod/container to avoid duplicate attach flows and port-forwards.
@adityathebe adityathebe merged commit 900b622 into main May 21, 2026
23 checks passed
@adityathebe adityathebe deleted the fix/async-arthas-session-create branch May 21, 2026 11:12
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