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

refactor(*): Replace Hystrix with Resilience4j #775

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

robzienert
Copy link
Member

Only one place where Hystrix was actually used for fallbacks, which I migrated. Everything else was just removed.

@@ -91,10 +90,7 @@ private String encode(String uri) {
}

public ProjectsList getProjects() {
Copy link
Contributor

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)

Copy link
Member Author

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?

Copy link
Member Author

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();
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Contributor

@cfieber cfieber left a 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

@robzienert robzienert added the ready to merge Approved and ready for merge label Jun 9, 2020
@mergify mergify bot added the auto merged label Jun 9, 2020
@mergify mergify bot merged commit e82e97b into spinnaker:master Jun 9, 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.

5 participants