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

unique index allowed insertion of duplicate

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.2.2
    • Storage
    • None
    • Amazon ec2 server using Ubuntu 12.04.1 LTS and EBS
    • Linux

    Description

      A duplicate document somehow made it into a collection with a unique index. I did not discover that this occurred for some time – after an ensureIndex call on the collection failed. Both inserts occurred at about the same time – the timestamps for their respective ObjectId's are equivalent. What is strange is that two inserts were not actually executed against the collection, yet somehow two duplicate records ended up in the collection.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danieldkim Daniel Kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: