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

Return all duplicates when trying to convert to a unique index

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v4.2
    • Execution Team 2021-11-15, Execution Team 2021-11-29

      We should return the id and duplicate key of all the documents violating the uniqueness constraints when scanning the index before converting it and throw CannotEnableIndexConstraint

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: