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-17088: Fix custom solr.xml usage in tests with extra jettys #2437

Merged
merged 2 commits into from
May 6, 2024

Conversation

HoustonPutman
Copy link
Contributor

@@ -276,6 +277,7 @@ public MiniSolrCloudCluster(
Objects.requireNonNull(securityJson);
this.baseDir = Objects.requireNonNull(baseDir);
this.jettyConfig = Objects.requireNonNull(jettyConfig);
this.solrXml = solrXml == null ? DEFAULT_CLOUD_SOLR_XML : solrXml;
Copy link
Contributor

@cpoerschke cpoerschke May 3, 2024

Choose a reason for hiding this comment

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

Wondering if the similar logic at lines 491-493/492-494 can be removed now then?

edit: or rather not removed but amended i.e. use passed in solrXml if non-null and this.solrXml otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I didn't see the other usages of this method with null. So I moved the defaulting here instead. Thanks for the review!

@HoustonPutman HoustonPutman merged commit b63e9cf into apache:main May 6, 2024
3 checks passed
@HoustonPutman HoustonPutman deleted the test-solr-xml branch May 6, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants