-
Notifications
You must be signed in to change notification settings - Fork 20
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
Spirit fails on metadata lock when table name is really long #347
Comments
Thanks for the bug report. I'll look into if this can be fixed. 64 chars is the limit for metadata locks, but what we can do is try and take a shorter lock name. |
I looked at this. This is a regression of #342 The maximum tablename supported by default is
However, when the option The regression is because the MDL lock is using the full quoted name of the table and the schema (which our schema names tend to be large too, so it could eat into the maximum size quickly). We'll have to change it back to just being the table name. I will ask @prudhvi to work on it, since it affects some of his other code. |
We implemented similar lock feature to shift in general and ran into a table name that was 47 characters long. On shift, we created lock name shift_schema_tablename which became 81 characters long altogether. On our end, we're thinking of hashing the table name as potential solution. |
Our fix here is just to use table name and not schema. Thus, you will no longer be able to run concurrent modifications across schemas with tables of the same name. I think this is an acceptable limitation for now. We can not reduce the 54/43 char limit much further, since these are unhashed table objects. We could document it better though. |
Square has some apps with long table names. It fails to start due to lock name over the length limit specified here.
The text was updated successfully, but these errors were encountered: