RecordId might be inserted more than once with unique index and dupsAllowed == true

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.0-rc6
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Here's a bug: https://github.com/mongodb/mongo/blob/3c1347b07d678297aa1d136e780f461bf1e28c07/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp#L1037

      If there are two RecordIds (locInIndex) that are higher than RecordId we're inserting (loc), then the loc will be inserted more than once to the value.

      I believe this line should be

      if (!insertedLoc && loc < locInIndex)

            Assignee:
            Benety Goh
            Reporter:
            Igor Canadi
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: