Index builds should fail gracefully when running out of disk space

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Execution EMEA Team 2023-07-24
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Yujin Kang Park
            Reporter:
            Louis Williams
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: