Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39563

Don't report un-inserted duplicates for secondary indexes during initial sync

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • ALL
    • Storage NYC 2019-02-25
    • 50

    Description

      The code here assumes that if dupRecords is passed, then the caller wants a set of un-inserted duplicates. If dupRecords is passed, the uniqueness of the index informs whether or not to ignore duplicates, overriding any previous call ignoreUniqueConstraint(). In this case x_1 is unique, so it will not ignore duplicates.

      In this case, the caller doesn't even want this set of un-inserted duplicate records. We should just not pass dupRecords to dumpInsertsFromBulk for secondary indexes, so that all duplicates get inserted and ignored, as expected.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: