-
Notifications
You must be signed in to change notification settings - Fork 17
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
Clarity on lock retry behaviour inside and outside transactions #50
Comments
Yes, your assumption is correct. Please do open a PR. |
Hmm, I'm not sure if
The change in #51 implies that now Given that, I think what the docs should say is:
@fatkodima @camallen what am I missing? |
The The runtime of the whole migration looks like this: def change
$migrate_attemps += 1
add_column ... => raises lock error
add_column ... again.. => raises lock error again
end |
Ahhh now I see what's going on.
|
I'm seeking clarification about the lock retry behaviour when running the migration outside of a transaction.
In the docs you explicitly state the retry behaviour when the migration runs inside a migration
However when running the migration without a transaction via
disable_ddl_transaction!
it's not clear in the docs but my assumption is that the LockRetrier does the same. E.g. in the test code it shows the migration is retried by the LockRetrier mechanism (if set).Can you please clarify the behaviour is as I assume. I'm happy to get a PR up to update the
configuring.md
doc as well.The text was updated successfully, but these errors were encountered: