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

Use DBLock instead of AutoGetDB in index builds

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc7, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-05-18
    • 30

      AutoGetDB can throw with a StaleDBVersion error.

      Index builds rely on waiting until critical section to let exceptions throw. Anything thrown before that will cause the server to crash.

      Use a DBLock then manually check the dbVersion under this exception handler.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: