Skip to content
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

Open
yqzhen1990 opened this issue May 6, 2024 · 6 comments

Comments

@yqzhen1990
Copy link

Describe the bug

Failed to rebuild elasticsearch index

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Search -> Elasticsearch Indices '
  2. Click on 'Rebuild' of one of the indices
  3. The spinner starts spinning...
  4. After a while (about 1~2min) , the page shows: err_empty_response
  5. And you can see the log in the screenshot.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

logs from docker : image

query indices from elastic:
1714992645754

@Piedone
Copy link
Member

Piedone commented May 6, 2024

Were other users accessing the app at the same time, and editing content?

The same kind of issue: #15743.

@yqzhen1990
Copy link
Author

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.

@Piedone
Copy link
Member

Piedone commented May 7, 2024

Does this reproduce you on every index rebuild?

@sebastienros
Copy link
Member

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.

@sebastienros sebastienros added this to the 2.x milestone May 9, 2024
@yqzhen1990
Copy link
Author

Does this reproduce you on every index rebuild?

yes

@yqzhen1990
Copy link
Author

@sebastienros ok, I'll try with the latest main branch this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants