-
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
roachtest: better failure message for c2c roachtests #108484
Conversation
In some failures cases the c2c roachtests may try to cutover even though the replication did not start successfully. This patch makes sure we fail with a more clear error in those cases. Epic: none Fixes: cockroachdb#107935 Release note: None
theres a bug in the roachtest. could this PR instead just return the error properly?
|
I agree that it's good to fail that monitor but how will that help here? we'll still be in also, probably the right solution here is to implement this todo:
|
Lol nice find with that todo. My cursory read of the code is that if monitor.Go() returns with an error, the whole monitor will shut down. And to be clear, i think adding a require around retainedTime<cutoverTIme seems fine to me. |
right, but we defer the
so... lgtm please? BTW maybe I should have clarified better that this pr is not a fix, it is just improving the error message when the test fails. |
i see. We can clean up this goroutine management in a seperate pr |
thanks! bors r+ |
Build succeeded: |
In some failures cases the c2c roachtests may try to cutover even though the replication did not start successfully. This patch makes sure we fail with a more clear error in those cases.
Epic: none
Fixes: #107935
Release note: None