Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8889

SolrCloud deleteById is broken when router.field is set

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.10
    • SolrCloud, SolrJ
    • None

    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            dsmiley David Smiley
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment