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
Error 1264: Out of range value #681
Comments
This is more of a question right now, but it seems that I don't have the permission to label it so. |
@mohsen3 That would be from the live updates, specifically from gh-ost parsing the binary logs to apply the base table's writes to the _gho table. This sounds like something we should test on our end. |
@ggunson Thank you for your quick response. This is a blocker for us right now. So, if there is something we can help with, please let me know. We are trying to reproduce it locally right now that may help you pin pointing the issue as well. Also, does it sound like a reasonable theory to you? If yes, we can stop insertions into that table for a while and does the migration. It means readonly access to the table for a few hours (which is not ideal, but acceptable to us if it works). Do you have any documentation on that issue that helps us understand or debug the issue better? |
It does, because we've seen the same sort of error message in regards to the binary log parsing. For example, #157 Also, we don't use If you're not altering that specific decimal column, I would guess that pausing writes to that table would allow gh-ost to run (or, if it failed it would be on something else). Could you please provide (so we can test this):
|
We are actually making those columns nullable (before migration, they are not nullable).
|
We ended up performing the
|
@alexdeschamps thank you for the input, the bug is confirmed in #684 |
#684 seems to fix the |
fixed by #684 |
We are trying to use
gh-ost
to add a new column to an existing table with a few hundreds of millions of rows and we are getting anError 1264: Out of range value for column '...' at row 1
error message. Unfortunately, I cannot reproduce this error on my dev environment. In the prod environment, the migration goes fine until a new row is inserted into the table (so it seems to me that it has something to do with live updates, although I am just guessing since I am not too familiar with the MySql replication protocol that gh-ost uses).The column that is causing this issue is of type
Decimal(65, 30)
and the values in there are pretty large (10**35-1
which is slightly smaller than the max possible value). Also in production, we have a master/slave setup that I don't have on my dev machine. Does any of these ring a bell? Is this a known issue ingh-ost
?The text was updated successfully, but these errors were encountered: