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

Improve the health route by ensuring lmdb is not down #3647

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

irevoire
Copy link
Member

@irevoire irevoire commented Apr 6, 2023

Fixes #3644

In this PR, I try to make a small read on the AuthController and IndexScheduler databases.
The idea is not to validate that everything works but just to avoid the bug we had last time when lmdb was stuck forever.

In order to get access to the AuthController without going through the extractor, I need to wrap it in the Data type from actix-web.
And to do that, I had to patch our extractor so it works with the Data type as well.

@irevoire irevoire added the bug Something isn't working as expected label Apr 6, 2023
@irevoire irevoire added this to the v1.2.0 milestone Apr 6, 2023
@irevoire irevoire requested a review from Kerollmops April 6, 2023 11:46
@irevoire irevoire force-pushed the fix-the-health-route branch 2 times, most recently from 0c9481a to c36338f Compare April 6, 2023 13:31
And refactorize slightly the auth controller.
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Uffizzi Ephemeral Environment deployment-21500

☁️ https://app.uffizzi.com/github.com/meilisearch/meilisearch/pull/3647

📄 View Application Logs etc.

The meilisearch preview environment contains a web terminal from where you can run the
meilisearch command. You should be able to access this instance of meilisearch running in
the preview from the link Meilisearch Endpoint link given below.

Web Terminal Endpoint :
Meilisearch Endpoint : /meilisearch

Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

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

Looks good to me 🛹
Thank you ❤️

@irevoire
Copy link
Member Author

irevoire commented Apr 6, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented Apr 6, 2023

Build succeeded:

@bors bors bot merged commit bc25f37 into main Apr 6, 2023
@bors bors bot deleted the fix-the-health-route branch April 6, 2023 18:59
@meili-bot meili-bot added the v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05 label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected v1.2.0 PRs/issues solved in v1.2.0 released on 2023-06-05
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the health route
3 participants