Skip to content

Close TCP endpoints on restore error instead of panics. #12025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2025

Conversation

copybara-service[bot]
Copy link

Close TCP endpoints on restore error instead of panics.

Restoring of TCP endpoints can fail due to various reasons, some of them are:

  • when the port used by the endpoint during checkpoint is already being used
    by some host socket during restore.
  • when the new route cannot be found due to changes in the network config.

During these failures instead of panic'ing and aborting the restore, log a
warning and close the failing connection.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Aug 12, 2025
@copybara-service copybara-service bot force-pushed the test/cl794286565 branch 2 times, most recently from 9e127a8 to af0eb7a Compare August 14, 2025 17:30
Restoring of TCP endpoints can fail due to various reasons, some of them are:
- when the port used by the endpoint during checkpoint is already being used
by some host socket during restore.
- when the new route cannot be found due to changes in the network config.

During these failures instead of panic'ing and aborting the restore, log a
warning and close the failing connection.

PiperOrigin-RevId: 795118834
@copybara-service copybara-service bot merged commit 25a1144 into master Aug 14, 2025
@copybara-service copybara-service bot deleted the test/cl794286565 branch August 14, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant