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

SOLR-16974: Global Circuit Breakers #1919

Merged
merged 10 commits into from
Nov 8, 2023

Conversation

janhoy
Copy link
Contributor

@janhoy janhoy commented Sep 13, 2023

https://issues.apache.org/jira/browse/SOLR-16974

Proof-of-concept with static map of global breakers.

@janhoy janhoy requested review from atris and cpoerschke September 13, 2023 12:41
@janhoy janhoy marked this pull request as draft September 13, 2023 12:41
@janhoy
Copy link
Contributor Author

janhoy commented Sep 13, 2023

Next step would be to add some solr.xml parsing, say from a new <circuitBreakers> tag. The inner xml could be identical as the one used in solrconfig.xml, and the loop parsing them would simply register them in the global static context of the registry. Then I believe the POC would be ready :)

@janhoy janhoy requested a review from dsmiley September 19, 2023 15:10
@janhoy janhoy force-pushed the SOLR-16974-global-circuit-breakers branch from 22c2e25 to 2907ecf Compare September 23, 2023 11:47
@janhoy janhoy marked this pull request as ready for review September 23, 2023 11:51
@janhoy janhoy requested a review from tflobbe September 23, 2023 11:51
@@ -814,6 +815,7 @@ public Path getInstancePath() {
new Class<?>[] {
// DO NOT ADD THINGS TO THIS LIST -- ESPECIALLY THINGS THAT CAN BE CREATED DYNAMICALLY
// VIA RUNTIME APIS -- UNTIL CAREFULLY CONSIDERING THE ISSUES MENTIONED IN SOLR-8311
CircuitBreaker.class,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any objections to add CircuitBreaker to the list of SolrCoreAware classes? Solr's home grown IOC sucks but that's what we have...

@janhoy
Copy link
Contributor Author

janhoy commented Nov 7, 2023

I think this is ready for review

@janhoy janhoy merged commit e740123 into apache:main Nov 8, 2023
4 checks passed
@janhoy janhoy deleted the SOLR-16974-global-circuit-breakers branch November 8, 2023 23:24
janhoy added a commit to janhoy/solr that referenced this pull request Nov 8, 2023
Co-authored-by: Christine Poerschke <[email protected]>
(cherry picked from commit e740123)
janhoy added a commit that referenced this pull request Nov 25, 2023
Co-authored-by: Christine Poerschke <[email protected]>
(cherry picked from commit e740123)
nginthfs pushed a commit to cowpaths/fullstory-solr that referenced this pull request Jun 11, 2024
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