On 11/16/23 09:38, Saur, Alexandre (ELS-AMS) wrote:
When I tried to delete a document I noticed this message in the logs:16/11/2023, 16:35:04 ERROR x:..._shard3_replica_n59 ErrorReportingConcurrentUpdateSolrClient Error when calling SolrCmdDistributor$Req: cmd=delete{_version_=-1782735337591668736,​query=`external_id_s:10.14463/…`,​commitWithin=-1}; node=ForwardNode: http://10...._shard1_replica_n69/ to http://10.... _shard1_replica_n69/ I’m not interested in the error but rather in what Solr is doing, because the CORE information is saying it’s something related to shard 3 (which seems ok, since replica 59 is the shard leader for that shard), but the error message is saying there was a problem while trying to delete the document from shard 1 (in another node)! Is this expected?
I am concerned by the presence of backticks in that output surrounding the query. It might be OK, but seems very odd. There are also other strange characters in your output, but I do not know how much of that might be due to your email client or hand-editing. It looks like you have edited it to remove certain things.
A deleteByQuery would have to be sent to all shards. That's the nature of the beast. With the compositeId router, a deleteById could be directed to a specific shard, but not a DBQ.
Thanks, Shawn
