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

Andrzej Bialecki updated SOLR-18410:
------------------------------------
    Fix Version/s: 10.1

> CrossDC Common: multivalued params and per-entry params don't survive the 
> serialization round-trip
> --------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-18410
>                 URL: https://issues.apache.org/jira/browse/SOLR-18410
>             Project: Solr
>          Issue Type: Bug
>          Components: module - crossDC
>    Affects Versions: 10.0, main(11.0), 9.10.1
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 10.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {{MirroredSolrRequestSerializer}} doesn't properly support multivalued 
> SolrParams on deserialization because it uses {{MapSolrParams}} for 
> deserialization.
> There's an {{assert}} in {{MapSolrParams}} constructor to ensure that entries 
> from the incoming map are {{String.class}} but this check only works when 
> asserts are turned on. If they are not, this later results in a 
> {{ClassCastException}} inside the consumer.
> Additionally the serializer uses {{updateRequest.getDocuments()}} to 
> serialize documents, discarding optional per-document parameters such as 
> "commitWithin" and "overwrite" ({{{}cw, ow{}}}). Similarly, when processing 
> delete-by-id-s it discards the optional "version" and "route" ({{{}ver, 
> _route_{}}}).



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