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

503 if search not available #4404

Merged
merged 1 commit into from
Jan 25, 2023
Merged

503 if search not available #4404

merged 1 commit into from
Jan 25, 2023

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Jan 25, 2023

Send an immediate 503 error if a request requiring search is made when search is not available.

This avoids creating processes that will certainly fail but also improves couchdb's handling when search (meaning the clouseau jvm) is deliberately not set up.

Without this change it is possible to crash couchdb if you make _search (or _search_info / _search_analyze) requests at sufficient intensity to crash supervisors.

@rnewson rnewson requested review from nickva and janl January 25, 2023 14:16
@rnewson rnewson merged commit 88ebc65 into main Jan 25, 2023
@rnewson rnewson deleted the 503-if-search-not-available branch January 25, 2023 14:55
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.

None yet

2 participants