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

Use handleUnaryRequest utility method for most server handlers #768

Conversation

aprudhomme
Copy link
Contributor

Use the handleUnaryRequest for most of the server gRPC method handling. This does not include the replication server, or more complicated methods (search, searchV2, commit). A lot of redundant/inconsistent request error handling code has been removed.

I added additional utility methods to Handler to get IndexState and IndexStateManager. This methods throw a NOT_FOUND status exception if the index does not exist.

@aprudhomme aprudhomme merged commit 6849a4e into Yelp:main Oct 18, 2024
1 check passed
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.

2 participants