-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
kvserver: deflake all tests that restart test cluster servers #106145
Conversation
e36e0c2
to
635ec97
Compare
We'll want to access it from `base`, which can't import `testutils` due to dependency cycles.
We'll type assert on it in future commits.
Future commits will change the receiver to ReusableListener.
We'll clean up the possible confusion with `GetOrFail` (which will create the listener if not present) later.
This will replace the ReusableListeners flag and simplify all tests using it. It's not used as of this commit, and all the tests using the soon-to-be-legacy approach still pass.
They didn't do this before, and as a result were susceptible to flakes. They were discovered through the checks introduced in follow-up commits. It will be impossible to hold it wrong.
635ec97
to
4e8a998
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup, thanks!
TFTR! bors r=erikgrinaker |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 5f4496b to blathers/backport-release-23.1-106145: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.1.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This PR reworks how TestCluster's reusable listeners work. They are now enforced in tests that restart servers under the same listening address, since restarting without one opens the door to a race where the port is now assigned to another process.
The 23.1 backport will address #105940.
Epic: None
Release note: None