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

fix(resilience4j): Circuit breaker ignores 404s from Jenkins #777

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

robzienert
Copy link
Member

No description provided.

.ignoreException(
(e) -> {
if (e instanceof RetrofitError) {
return ((RetrofitError) e).getResponse().getStatus() == 404;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a error.getKind() == HTTP && ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Do we think we'd get a 404 status with any other Kind, or is this a bases covered sorta thing?

Copy link
Contributor

@ajordens ajordens Jun 10, 2020

Choose a reason for hiding this comment

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

Bases covered ... I think the getResponse() could be null for some other Kinds.
(if memory serves)

@robzienert robzienert added the ready to merge Approved and ready for merge label Jun 10, 2020
@mergify mergify bot merged commit a92fc6b into spinnaker:master Jun 10, 2020
@mergify mergify bot added the auto merged label Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants