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
Lock search index while reindexing... #5419
Comments
It also can happen with the
PS (as a reminder): error logs about search re-indexing are described here: #6168 |
https://community.humhub.com/content/perma?id=269660 might be caused by this issue. |
@yurabakhtin Any idea? |
@luke- I have read the linked issues and as I have understood the main problem is we should stop cron before run the search rebuild process. I think we could implement an event triggering for We should detect when the folowing commands are executed:
We could set a setting in DB with name like Do you agree? |
Hmm, I don't know if it's a bit too radical to stop all queue processing during the search rebuild. But that could be a solution. Possibly also for updates/maintenance. I would prefer to realize this via a mutex: https://www.yiiframework.com/doc/api/2.0/yii-mutex-mutex But here we need a fallback in case the search rebuild crashes... I originally expected a solution that the |
Is your feature request related to a problem? Please describe.
While reindexing the search index via console, new entries may added by queue processing.
See: #3847 (comment)
Describe the solution you'd like
Set some sort of lock.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: