Skip to content
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

Improve serverPort handling in client server protocol #4018

Merged
merged 15 commits into from
Nov 25, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Nov 24, 2024

Some follow ups after investigating #4019

  • Make the server's ServerSocket fixed per-server-process rather than per-run, removing the race condition of the client reading a stale serverPort that differs from what the server is currently listening on

  • Make sure we delete all per-run files when starting a new run, so we can be sure we don't get confused by reading stale metadata

  • Clean up the error handling of ServerLauncher#run to avoid swallowing exceptions silently

  • Improve the comprehensiveness of server.log to make it easier to see problems with multiple server processes overlapping

@lihaoyi lihaoyi changed the title Fix serverPort race condition in client server protocol Improve serverPort handling in client server protocol Nov 24, 2024
@lihaoyi lihaoyi marked this pull request as ready for review November 24, 2024 22:55
@lihaoyi lihaoyi force-pushed the fix-server-launcher branch from b33e8e2 to e1002d2 Compare November 25, 2024 00:03
@lihaoyi lihaoyi merged commit 3ee5815 into com-lihaoyi:main Nov 25, 2024
27 checks passed
@lefou lefou added this to the 0.12.3 milestone Nov 25, 2024
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.

2 participants