Unique index conversion can use unbounded memory

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • ALL
    • Execution Team 2024-09-16, Execution Team 2024-09-30, Execution Team 2025-02-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When converting an index to be unique, we accumulate all duplicates in a vector while scanning the entire index. We impose no memory limit and no spilling.

      On top of that, if the number of duplicates exceeds the 16MB BSON limit, we will fail to return a command response. We do, however, limit the memory when returning a command response.

              Assignee:
              Sandeep Dhoot
              Reporter:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: