Skip to content

[Bug] Explicitly close the sandbox connection when the Sandbox is suspended in GKE Extension Pod snapshot #585

@SHRUTI6991

Description

@SHRUTI6991

Currently, when we try execute a command like sandbox.commands.run after sandbox.supend and sandbox.resume, the local port forward tunnel still points to the old IP and takes 60 sec of retry to reinitiate a new connection with the updated IP.

We can explicitly close the underlying connector (which stops the port-forwarding process) during the suspend and resume methods. The next time a command execution or file operation occurs, the SandboxConnector will automatically spin up a fresh tunnel that correctly routes to the new Pod IP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions