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

Remove index key generation error whitelist

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.8.0, 4.4.13
    • None
    • Fully Compatible
    • v4.4
    • Execution Team 2020-09-21

    Description

      During index builds, we use a whilelist to determine whether an error was a key generation error or not.

      This whitelist was originally created for oplog application on secondaries since we apply operations out of order, but can only safely ignore specific errors. With two-phase index builds, we now ignore key generation errors on all nodes for later constraint checking.

      Two-phase index builds also depend heavily on this whitelist being correct since an unanticipated error can cause a crash.

      If we assume all non-interrupt/shutdown exceptions are key generation errors, then we can remove this fragile enumeration of safe errors and be confident no exceptions can be thrown during index builds.

      Attachments

        Activity

          People

            vishnu.kaushik@mongodb.com Vishnu Kaushik
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: