makosten commented on pull request #288:
URL: https://github.com/apache/solr/pull/288#issuecomment-955826088


   @cpoerschke You nailed it! The CompositeId Router has some inconsistent 
behavior. It's strict on the router field when adding but if the route is 
missing when deleting by id, it returns the slice based on the unique id hash. 
I updated the CompositeIdRouter to return null for getTargetSlice for this 
condition, in which case it is run on the current slice, and then flag the 
request to be broadcast to the other shard leaders.
   
   This also affected the Implicit Router as it will now broadcast the 
delete-by-id request if the route is missing, so I updated a failing test. I'd 
like some feedback on this, as maybe the old behavior is more desirable for the 
Implicit router.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to