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

Fix intermittent alter() failures when upgrading unique indexes.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Storage
    • None
    • Storage Execution
    • Storage Non-NYC 2018-04-23

    Description

      Unique index upgrade requires the app_metadata stored for the index's WT table to be updated using the alter() command. For a successful execution, alter() requires an exclusive access to the underlying file, otherwise it fails with an EBUSY error. This exclusive access is not granted if there are cursors opened on the file.

      Our current implementation fails intermittently when other operations on the index race with the index upgrade process.

      This ticket tracks the work needed to implement an alter() invocation that deterministically gets this exclusive access and doesn't fail intermittently with an EBUSY error.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: