You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/24 15:53:00 UTC

[jira] [Created] (SOLR-11896) bin/solr create doesn't complain when invalid options are used

Cassandra Targett created SOLR-11896:
----------------------------------------

             Summary: 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


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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org