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

Ignore stale look up errors #5

Merged
merged 5 commits into from
Jan 9, 2018
Merged

Ignore stale look up errors #5

merged 5 commits into from
Jan 9, 2018

Conversation

nspragg
Copy link
Contributor

@nspragg nspragg commented Jan 9, 2018

This is not as useful than ignoreCacheErrors in maxAge, which bypass cache lookup failures and reads from the source system.

StaleIfError (with ignoreCacheError) will result in a error either way - this just lets us choose which error we want to expose (?)

Relates to:
https://jira.dev.bbc.co.uk/browse/IPLAYER-31785

Simply re-throws the original error not the cache lookup error. e.g HTTP 500 (original source error) not a Redis connection error attempting to get the stale content.

Copy link
Contributor

@niklasR niklasR left a comment

Choose a reason for hiding this comment

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

👍

@nspragg
Copy link
Contributor Author

nspragg commented Jan 9, 2018

Cheers

@nspragg nspragg merged commit d3ee749 into master Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants