SOLR-15421 ConfigSetService.checkConfigExists accepts empty configs#135
SOLR-15421 ConfigSetService.checkConfigExists accepts empty configs#135dsmiley merged 1 commit intoapache:mainfrom
Conversation
There was a problem hiding this comment.
If there is a existsConfig == null check above, there should be one here as well, otherwise there will be a NPE.
There was a problem hiding this comment.
Good point, fixed.
There was a problem hiding this comment.
I'm missing something; why two calls to ZK just to check that a config exists? If solrconfig.xml is now necessary, then why check the parent?
There was a problem hiding this comment.
I'm missing something; why two calls to ZK just to check that a config exists? If solrconfig.xml is now necessary, then why check the parent?
There was a problem hiding this comment.
Why the isDirectory check; why not just check for solrconfig.xml?
solr/core/src/test/org/apache/solr/cloud/TestConfigSetsAPI.java
Outdated
Show resolved
Hide resolved
dsmiley
left a comment
There was a problem hiding this comment.
LGTM. Can you add a CHANGES.txt entry please? Under 9.0 Improvements. Try to explain briefly in a way a user would understand.
…g the existence of a configset
|
Thanks @dsmiley I added the CHANGES.txt entry and also changed the commit message to match it. Feel free to suggest a new text if necessary. |
…#135) ConfigSet API now checks for solrconfig.xml when checking for the existence of a configset
Description
Both FileSystemConfigSetService and ZkConfigSetService only checks the existence of the directory only in checkConfigExists.
Solution
Create a new method to also check for solrconfig.xml checkConfigExistsWithSolrConfigXml
Tests
Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.