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

Validate index entries at catalog layer

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

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: