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

Exceptions thrown while generating index keys fail collection validation

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • Execution Team 2024-06-24, Execution Team 2024-07-08, Execution Team 2024-07-22
    • 200

      Some index key generation methods may throw exceptions as part of the control flow, to indicate that a given document has contents which are not compatible with the current set of indexes for a given collection. Collection validation generates the expected keys for each document in order to check them against the index keys on disk for consistency. If an exception is encountered during this process, it fails the validation process early, which could mask other issues.

      It is likely we can safely catch certain types of exceptions, record the failure, and continue to validate the rest of the collection. If not, we should make quite clear that the results are incomplete.

            Assignee:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: