Description
If you set router.field on your collection to shard by something other than the ID, then deleting documents by ID fails some of the time (how much depends on how sharded the collection is). I suspect that it'd work if the IDs provided when deleting by ID were prefixed using the composite key syntax – "routekey!id" though I didn't check. This is terrible. Internally Solr should broadcast to all the shards if there is no composite key prefix.
Some affected code is UpdateRequest.getRoutes.
Attachments
Attachments
Issue Links
- fixes
-
SOLR-12694 JavaBinUpdateRequestCodec fails to restore UpdateRequest.deleteById correctly when '_route_' is specified.
- Closed
- is related to
-
SOLR-12694 JavaBinUpdateRequestCodec fails to restore UpdateRequest.deleteById correctly when '_route_' is specified.
- Closed
- relates to
-
SOLR-7384 Delete-by-id with _route_ parameter fails on replicas for collections with implicit router
- Resolved
-
SOLR-5890 Delete silently fails if not sent to shard where document was added
- Closed
-
SOLR-11868 Deprecate CloudSolrClient.setIdField, use information from Zookeeper
- Closed
- split to
-
SOLR-15589 DocRouter API needs redesigned to support stricter routing rules
- Open