[ 
https://issues.apache.org/jira/browse/SOLR-17834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013756#comment-18013756
 ] 

Chris M. Hostetter commented on SOLR-17834:
-------------------------------------------

{quote}still a few nocommits related to some more tests I still want to write.
{quote}
 

And of course, writing those tests led to new weird behavior that made me 
realize all of our docs about how the Config API works are wrong, and the API 
path itself is misleading: SOLR-17862.

Which also made me realize the test isn't doing a very good job of:
 * testing "common" properties via the Config API
 * cleaning up configset overlay changes in ZK so they don't leak between tests 
(in my defense, i thought these were collection specific because that's what 
the docs say)
 * being rigorous in asserting what types of "user" properties override what 
other types of properties (with the same name)

...so test hardening continues.

> config API 'set-user-property' no longer has affect on solrconfig.xml: 
> notably update.autoCreateFields 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-17834
>                 URL: https://issues.apache.org/jira/browse/SOLR-17834
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 9.8, 9.9
>            Reporter: Chris M. Hostetter
>            Assignee: Chris M. Hostetter
>            Priority: Major
>         Attachments: SOLR-17834.hack.test.patch, SOLR-17834.patch
>
>
> As (indirectly) discovered by tim610156 on the solr-user mailing list, 
> Something broke between 9.7.0 and 9.8.0 that (evidently) causes the 
> {{set-user-property}} command to no longer modify the variables resolved when 
> the {{solrconfig.xml}} is re-loaded as part of the resulting core/collection 
> reload.
> *MOST NOTABLY*
> This mean that our well documented instructions for disabling 
> {{autoCreateFields}} no longer seems to have any effect...
> {noformat}
> hossman@slate:~$ curl -sS 'http://localhost:8983/solr/test/schema/fields' | 
> grep bogus
> hossman@slate:~$ curl http://localhost:8983/solr/test/config -d 
> '{"set-user-property": {"update.autoCreateFields":"false"}}'
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":245
>   },
>   "WARNING":"This response format is experimental.  It is likely to change in 
> the future."
> }hossman@slate:~$ 
> hossman@slate:~$ curl 
> 'http://localhost:8983/solr/test/update?commitWithin=1000&overwrite=true' -H 
> 'Content-type: application/json' --data 
> '[{"id":"hoss","bogus_field":"bogus_value"}]'
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":191
>   }
> }hossman@slate:~$ 
> hossman@slate:~$ curl -sS 'http://localhost:8983/solr/test/schema/fields' | 
> grep bogus
>     "name":"bogus_field",
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to