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

Validate index entries at catalog layer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Catalog
    • Labels:
      None
    • Case:

      Description

      While implementing SERVER-52539, I noticed that it's possible to create invalid index entries. For example, we can pass {key: {a: 1}, dropDups: "this should be a bool but it's a string"} to createIndexes, and create an invalid entry, which is then returned by listIndexes.

      After SERVER-52539, createIndexes will be much stricter at the command-parsing layer. However, perhaps we should consider more validation at the catalog layer as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-execution Backlog - Storage Execution Team
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: