Skip to content

customize Faraday middleware on RSolr client to do retries on Solr - #1520

Merged
eddierubeiz merged 6 commits into
masterfrom
solr_retry
Jan 11, 2022
Merged

customize Faraday middleware on RSolr client to do retries on Solr#1520
eddierubeiz merged 6 commits into
masterfrom
solr_retry

Conversation

@jrochkind

@jrochkind jrochkind commented Dec 20, 2021

Copy link
Copy Markdown
Contributor

Unclear how safe this Blacklight API is to use, overriding private method in Repository sub-class. But best thing we found to accomplish Solr retries in Blacklight.

Needs:

  • Blog this for Blacklight community
  • Test this somehow

Ref #1365

@jrochkind
jrochkind force-pushed the solr_retry branch 3 times, most recently from affd957 to 0825921 Compare December 20, 2021 22:01
@jrochkind

Copy link
Copy Markdown
Contributor Author

Current failure is unrelated to us specifically, seems to be a docker-hub outage, which ends up effecting github CI, cause the whole internet is a network of fragile dependencies now.

https://status.docker.com/

Unclear how safe this Blacklight API is to use, overriding private method in Repository sub-class. But best thing we found to accomplish Solr retries in Blacklight.
@jrochkind

Copy link
Copy Markdown
Contributor Author

@jrochkind
jrochkind marked this pull request as ready for review January 10, 2022 17:06
@eddierubeiz

Copy link
Copy Markdown
Contributor

Very cool. Thanks for the tests in particular.

@eddierubeiz
eddierubeiz merged commit 2417ab2 into master Jan 11, 2022
@eddierubeiz
eddierubeiz deleted the solr_retry branch January 11, 2022 16:18
@jrochkind

Copy link
Copy Markdown
Contributor Author

Thanks, those tests took me like over a day to figure out, but seemed worth it in this case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants