Andrzej Bialecki created SOLR-18687:
---------------------------------------
Summary: 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: 9.11, 10.1
Reporter: Andrzej Bialecki
Assignee: Andrzej Bialecki
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.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]