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

ASF subversion and git services commented on SOLR-18687:
--------------------------------------------------------

Commit 16dba79d6c65b8c46f574492978ef96e0bef694c in solr's branch 
refs/heads/main from Andrzej Bialecki
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=16dba79d6c6 ]

SOLR-18687: CrossDC - fix broken expandDbq=expand option. (#5388)

> 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: 40m
>  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