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

Index builds should fail gracefully when running out of disk space

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Storage Execution
    • Execution EMEA Team 2023-07-24

    Description

      When an index build fails due to running out of disk space, it will cause the node to crash. We should attempt to handle this more gracefully.

      If we get an ENOSPC from WiredTiger, we should drop any storage engine tables and external sort files immediately and then write an abortIndexBuild oplog entry to cancel the index build.

      Alternatively, we could:

      • Proactively cancel the index build if we expect that we won't have any disk space to complete the index build
      • Expose metrics about expected disk space requirements and allow administrators to cancel index builds that are expected to exceed this limit.

      Attachments

        Activity

          People

            yujin.kang@mongodb.com Yujin Kang Park
            louis.williams@mongodb.com Louis Williams
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: