-
Notifications
You must be signed in to change notification settings - Fork 2.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
YesSql.ConcurrencyException: The document could not be updated as it has been changed by another process. When rebuilding elasticsearch index with version 1.8.3 #15989
Comments
Were other users accessing the app at the same time, and editing content? The same kind of issue: #15743. |
No other users editing content at the same time. |
Does this reproduce you on every index rebuild? |
Could be two requests or threads saving the site settings. @yqzhen1990 can you try with the latest main branch? We fixed a concurrency issue related to site settings that could explain it. If not that, then maybe a background task that is updating the index is happening while the Rebuild is invoked from the UI, and that would be something to handle. To debug that we should add some logging to display when either is invoked/done and see if this is what is happening. |
yes |
@sebastienros ok, I'll try with the latest main branch this weekend. |
OC version : v2.0.latest The same problem occurs when executing an installed recipe, I applied this PR in my own repository: In my installation recipe, there are several modules similar to After applying this PR sebastienros/yessql#568, you can see from the logs that the error message comes from
|
Strangely enough this issue is not reproducible in unit tests, it only occurs when performing tenant initialisation from the page |
I executed the Elasticsearch Search recipe after a Blog setup with the latest main a few days ago. Are you saying something like this fails for you? |
The version he mentions is 1.8.3, and the problem I'm having is with the latest version, so I've moved to #16214 |
Which DB are you using? I just tried with the latest |
How was this fixed? I have a similar issues concering part settings, being accessed and updated by many users (PartHandler, workflow - a simple counter being incremented and used for transaction numbering) |
Describe the bug
Failed to rebuild elasticsearch index
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
logs from docker :
query indices from elastic:
The text was updated successfully, but these errors were encountered: