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

Fix Elasticsearch default views resetter #4780

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

imsdu
Copy link
Contributor

@imsdu imsdu commented Mar 5, 2024

Fixes #4727

  • Limit the amount of transactions by grouping the deletes
  • Read from the write node during evaluation to avoid bugs due to replication delays

views.compile.toList
.flatMap { _.traverse { resetView } }
.flatMap { _ => logger.info("Completed resetting default elasticsearch views.") }
deleteDatabaseEntries >>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So was the fact that ES indices were deleted before the entries also an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a combination of that and the fact that we were reading from replicas when recreating the views yes.
Reducing the number of transactions is not a bad thing anyway, it will also help the WAL to get replicated.

@imsdu imsdu merged commit 8215d6b into BlueBrain:master Mar 6, 2024
6 checks passed
@imsdu imsdu deleted the 4727-fix-es-default-view-resetter branch March 6, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The ElasticSearchDefaultViewsResetter can fail to reset some views
2 participants