-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Fix for Issue #549 : Add Fallbacks in Aggregator Service #971
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
Conversation
Catch ClientProtocolException and Update Error Logs
Add fallbacks in Aggregator service when other microservices fail
Pull master from Source Repo
…erns into fix/issue549
product.setTitle("Error: Fetching Product Title Failed"); //Fallback to error message | ||
} | ||
|
||
if (productInventory != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProductInventoryClientImpl
does not return null but 0 when exception occurs. Perhaps returning null would be the correct way, so the change should be implemented in the client..
Ping @jarpit96, some changes have been requested. Also the branch is conflicting now. |
Completely missed the comments, I will get on it soon. Will look at the conflicts too. |
Sync with original repo
…erns into fix/issue549 # Conflicts: # aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/Aggregator.java
Thanks @jarpit96, this looks good! |
Changes:
Add fall backs in Aggregator Service when other microservices fail. Default error messages (Product Title and Inventory) are returned to the user.