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

ASF GitHub Bot updated SOLR-18687:
----------------------------------
    Labels: pull-request-available  (was: )

> CrossDC: expandDbq=expand is broken
> -----------------------------------
>
>                 Key: SOLR-18687
>                 URL: https://issues.apache.org/jira/browse/SOLR-18687
>             Project: Solr
>          Issue Type: Bug
>          Components: module - crossDC
>    Affects Versions: 10.1, 9.11
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For expanding DBQ requests into DBI-s on the source side, the CrossDC module 
> runs a query to obtain all matching doc id-s.
> However, SOLR-16503 replaced the SolrClient built inside theĀ 
> {{MirroringUpdateProcessor}} with the one obtained from 
> {{{}CoreContainer.getDefaultHttpClient(){}}}. The problem is that this client 
> doesn't know the baseURL and none was provided so it couldn't actually 
> execute any request.
> This bug slipped through the existing tests either because they used 
> expandDbq=none or used mocked SolrClient that always worked.
> The fix is either to obtain the baseUrl from the current core, or simply use 
> the CloudSolrClient already available in ZkController.
> The workaround for now is to use {{-Dsolr.crossdc.expandDbq=none}} in 
> SOLR_OPTS.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to