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

Reordered delete-by-query can delete or omit child documents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.5
    • 6.5, 7.0
    • None
    • None

    Description

      It looks like when a block of documents is indexed, child documents get no _version_ field. This means (among other potential issues) that a delete-by-query that is reordered will cause matching child documents to be deleted. DBQ normally prevents deleting newer docs by including a restriction on _version_, which doesn't work for anything lacking that field. Re-ordered delete-by-term of any child docs would also be affected (although it should be a much rarer issue.)

      The leading candidate for a fix is to use the exact same _version_ for all child docs.

      Attachments

        1. SOLR-10114-validation.patch
          8 kB
          Mano Kovacs
        2. SOLR-10114.patch
          12 kB
          Mano Kovacs
        3. SOLR-10114.patch
          12 kB
          Mano Kovacs
        4. SOLR-10114-test-cleanup.patch
          1 kB
          Mano Kovacs
        5. SOLR-10114-2.patch
          13 kB
          Mano Kovacs
        6. SOLR-10114-2.patch
          12 kB
          Mano Kovacs
        7. SOLR-10114-3.patch
          8 kB
          Mano Kovacs

        Activity

          People

            yseeley@gmail.com Yonik Seeley
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: