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

Made sure that Meilisearch initalisation does not have gaps #1279

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

CommanderStorm
Copy link
Member

Current meilisearch initialisation logic has a gap (~2-5s) where we might serve out EMPTY search results.
The client treats these as valid => won't retry them and might cache them

Related to @AntonMC-Github's discoveries (thanks for the report) in #1274

Proposed Changes (include Screenshots if possible)

  • Made sure that a tokyo::RWLock prevents the database to be in an invalid stat during searches
  • renamed db -> pool to relflect the usage

How to test this PR

  1. See if it initalises
  2. Unittests

How has this been tested?

  • See if it initalises
  • Unittests

Checklist

  • I have updated the documentation / No need to update the documentation
  • I have run the linter

@CommanderStorm CommanderStorm enabled auto-merge (squash) July 3, 2024 02:25
@CommanderStorm CommanderStorm merged commit 55a1a8d into main Jul 3, 2024
11 checks passed
@CommanderStorm CommanderStorm deleted the better-ms-init branch July 3, 2024 02:39
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.

1 participant