[
https://issues.apache.org/jira/browse/SOLR-18687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrzej Bialecki updated SOLR-18687:
------------------------------------
Description:
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.
was:
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(){}}}. However, 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.
> 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
>
> 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]