[ 
https://issues.apache.org/jira/browse/SOLR-11896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Pugh resolved SOLR-11896.
------------------------------
    Resolution: Cannot Reproduce

> bin/solr create doesn't complain when invalid options are used
> --------------------------------------------------------------
>
>                 Key: SOLR-11896
>                 URL: https://issues.apache.org/jira/browse/SOLR-11896
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCLI
>    Affects Versions: 7.2
>            Reporter: Cassandra Targett
>            Priority: Minor
>
> I was trying to make errors appear in the logging screen of the UI and 
> thought I'd try to create a core with invalid shard and replicationFactor 
> options, which should only be valid when I create a collection. To my 
> surprise, the core was created and the invalid options ignored:
> {code}
> $ ./bin/solr create -c cloud -s 3 -rf 5
> WARNING: Using _default configset. Data driven schema functionality is 
> enabled by default, which is
>          NOT RECOMMENDED for production use.
>          To turn it off:
>             curl http://localhost:8983/solr/cloud/config -d 
> '{"set-user-property": {"update.autoCreateFields":"false"}}'
> Created new core 'cloud'
> {code}
> If I used the more specific "create_core" option, the same thing happened. We 
> should instead provide an error message to tell the user that they are trying 
> to do something that's not possible or not going to happen the way they think 
> it will.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to