-
Notifications
You must be signed in to change notification settings - Fork 658
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
refactor(*): Replace Hystrix with Resilience4j #775
Conversation
@@ -91,10 +90,7 @@ private String encode(String uri) { | |||
} | |||
|
|||
public ProjectsList getProjects() { |
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.
The grouppKey
in here is a distinct name per jenkins host, so that we would stop requests to a bad jenkins master. I don't know that we actually get much benefit from tripping that circuit breaker when there are problems, but I wonder what still uses groupKey in here (and other spots that got de-hystrix'd)
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.
Just checked, groupKey
isn't used anywhere else, I just failed to delete it.
I can add circuit breaking back into JenkinsService
if we think it'd be useful. I suspect the only time it comes into play is when we take down a Jenkins master to upgrade - I think there's legitimacy there. WDYT?
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.
Added circuit breaking back in for jenkins.
@@ -324,8 +310,9 @@ public Build getBuild(String repoSlug, int buildNumber) { | |||
error -> { | |||
log.warn("An error occurred while fetching new jobs from Travis.", error); | |||
return Collections.emptyList(); |
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.
this seems like a pretty questionable fallback but I don't have skin in the Travis game so I'm not proposing we change anything
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.
It's the best fallback. Silent and sneaky!
But yeah, don't change it for now, but I'll try to remember to look into this.
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.
mostly was just wondering whether the per jenkins circuit breaker was buying us anything but otherwise lgtm
c3aa55a
to
de54e85
Compare
de54e85
to
6371a17
Compare
Only one place where Hystrix was actually used for fallbacks, which I migrated. Everything else was just removed.