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

OSTR-164 document ostrich exceptions #190

Merged
merged 2 commits into from Dec 9, 2016
Merged

OSTR-164 document ostrich exceptions #190

merged 2 commits into from Dec 9, 2016

Conversation

mike-unitskyi
Copy link
Contributor

No description provided.

* [NoAvailableHostsException](../src/main/java/com/bazaarvoice/ostrich/exceptions/NoAvailableHostsException.java) an exception indicating that [host discovery](../src/main/java/com/bazaarvoice/ostrich/HostDiscovery.java) provided no end points.
* [NoCachedInstancesAvailableException](../src/main/java/com/bazaarvoice/ostrich/exceptions/NoCachedInstancesAvailableException.java) an exception to be thrown when a service cache does not have an idle cached instance for an end point, it does not have room to create a new one, and it is configured to fail when exhausted.
* [NoSuitableHostsException](../src/main/java/com/bazaarvoice/ostrich/exceptions/NoSuitableHostsException.java) an exception indicating that [load balancing algorithm](../src/main/java/com/bazaarvoice/ostrich/LoadBalanceAlgorithm.java) did not chose any end point from provided end points.
* [OnlyBadHostsException](../src/main/java/com/bazaarvoice/ostrich/exceptions/OnlyBadHostsException.java) an exception to be thrown when all available end points for service have been marked as bad (includes end points that have thrown exceptions during execution or end points that have a failed health check).
Copy link

Choose a reason for hiding this comment

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

Good list and summaries. I wonder if a table with some additional pieces of data might be even more helpful:

Exception Service Discovered Problem Domain Description
NoSuitableHostsException No Ostrich Indicates that load balancing algorithm did not chose any end point from provided end points.
OnlyBadHostsException Yes Service Service endpoints discovered by Ostrich have all errored or are otherwise reporting unhealthy

@lwoodson
Copy link

lwoodson commented Dec 9, 2016

LGTM

@mike-unitskyi mike-unitskyi merged commit 7861788 into bazaarvoice:master Dec 9, 2016
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