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

Enforce that collection catalog entry contain _id index

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution

      Collections (except if clustered) are required to have an _id index. We have code that detects missing _id index and tries to repair the catalog at startup if missing but we do not have any early enforcement that the catalog entry will be written with the _id index to begin with. Any bug resulting in a missing _id is difficult to fix as it is not allowed to perform catalog writes without timestamp and may result in silent performance degradation if _id lookup is not performant.

      We should consider enforcing this property at an earlier stage to minimize the likelihood of corrupt catalog entries as much as possible.

            Assignee:
            Unassigned Unassigned
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: