Add hot restart integration test [changelog skip] #2417
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I created https://github.com/cjlarose/puma-phased-restart-errors as a way to demonstrate connection errors related to hot restarts, phased restarts, and shutdowns (documented in #2337). The project has been helpful in catching concurrency errors such as in #2279 (comment). It has been helpful, too, in verifying fixes like #2377 and #2122.
This PR introduces an integration test that aims to serve a similar purpose. I hope that it'll help prevent regressions related to connection handling and concurrency, especially around hot restarts, phased restarts, and shutdowns. By putting it in the repo along with the normal test suite, we can identify failures more quickly and easily.
The test basically just hammers a puma single-mode cluster while concurrently performing a bunch of hot restarts. The expectation is that all clients receive successful responses (all accepted connections on the socket are responded to as expected).
Your checklist for this pull request
[changelog skip]
or[ci skip]
to the pull request title.[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.