-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Timeout while running migrations #2080
Comments
We set the timeout for infinity to any migration command. If you are running queries, then you should set the timeout individually. Also please note we typically do not recommend running queries during migration. If you need to insert data or run some particular command, it is preferred to do that after migration executes in a separate task. |
@josevalim I disagree with the recommendation about not running queries. Sometimes queries are needed to fix existing data after some schema changes. But maybe this is better to discuss in the mailing list. In fact mine was just a minimal example to trigger the error without knowing there is a difference with DDL queries. But in my case I found the error while running migrations in production server where a column was being added (using Wouldn't be much easier to override the |
This issue is tracked at xerions/mariaex#162 |
Environment
mysql 5.7
Current behavior
While running a long running migration (ie: adding a column to a huge table) the execution often times out. For example:
Seems like this issue was fixed in the past (#279), but the adapters code has changed dramatically since then and the
:infinite
timeout is not being passed to the connector anymore.Expected behavior
During migrations, infinite timeout should be allowed for any query.
The text was updated successfully, but these errors were encountered: