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

Interrupted index builds are not resumed on restart (via createIndexes or ensureIndex)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.0-rc0
    • Index Maintenance
    • ALL

    Description

      Index builds that are started via the createIndexes command or the ensureIndex shell helper do not seem to resume after the server is shut down. JS tests are attached for both ensureIndex and createIndexes.

      Output:

      [conn2] index build failed. spec: { v: 1, key: { foo: 1.0 }, name: "bg-shutdown-one", ns: "create.shutdown", background: true } error: 11600 interrupted at shutdown

      I also noticed that there are a few IndexCatalog::createIndex() callers that use the default SHUTDOWN_CLEANUP behavior instead of specifying SHUTDOWN_LEAVE_DIRTY. Is that on purpose?


      Version: d0135ad0ed90118ad2015283f22b0219c0df3301

      Attachments

        1. create_indexes_shutdown.js
          2 kB
        2. ensure_index_shutdown.js
          2 kB

        Activity

          People

            milkie@mongodb.com Eric Milkie
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: