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

Unique index conversion can use unbounded memory

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL
    • Execution Team 2024-09-16, Execution Team 2024-09-30

      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:
            Unassigned Unassigned
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: