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
Race condition when doing a series of "duplicates" from one product #3207
Comments
Please follow the https://github.com/odoo/odoo/wiki/Contributing guidelines What version ? My intuition is that it's not a race condition but a problem related to the duplication of ir_translation records each time you do it the size double so after n runs it take 2**n. For n=10 it's 1024 time the normal time. |
Hi, I am trying this on V. 8.0... Yes, it is related to ir_translation, I saw that later on the logs... Regards,
|
So, is this 2**n explosion of labels translated a known issue when duplicating products? Or any record ? |
Thanks Christophe for the Fix, and Raphaël for his constant monitoring on I will try this out and will report back... Regards, |
Cross-linking a related issue on launchpad : https://bugs.launchpad.net/openobject-server/+bug/705364 |
After resolution of #3272 I cannot reproduce this 2**n explosion. I guess it's fixed. |
I confirm it seems that less translations are duplicated. |
Thanks Christophe and mart-e, At least for our use case, it is gone. Will do some extra testing this weekend and will report back if any other issue arises... |
Hi,
If you have another language loaded besides English, and do a series of duplicates from one "product" record, odoo will enter a race condition that will end up on "Exception: CPU time limit exceeded."
Steps to reproduce:
Check that you have installed another language besides English.
Open a product, and do a series of "duplicate" and "save". When you do this about 8 or 10 times, you will start noticing that duplication takes more and more time to complete.
If you continue duplicating and saving, you will end up with a nice "Exception: CPU time limit exceeded."
The text was updated successfully, but these errors were encountered: