-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove timeout from MySQL migrations #2974
Conversation
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.
Woohoo...Couple questions. This only affects mySQL? Do we need to worry about timeouts on large Postgres DBs? And it make sense, but just want to make sure...only ReadTimeOut is an issue. Thanks Miguel.
Only ReadTimeouts should be an issue as WriteTimeouts controls the time when the server is writing to the client. In any case, I tested the fix with both timeouts below migration time and it worked fine. As per postgres, I've tested migrations that lasted way more the timeout set in the connection string and it seems to respect |
@sbishel ^ |
After digging a bit deeper, the I'd propose to follow what server is doing and assume |
Cherry pick is scheduled. |
(cherry picked from commit c08ce96)
Summary
This PR reuses the server mechanism to remove the MySQL timeout from the connection string to bypass timeouts when running migrations.
A couple of follow up PRs will come later making the server method public for it to be used in Focalboard instead of duplicating the implementation.
Ticket Link
Fixes #2946