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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Index Maintenance
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

            Assignee:
            Eric Milkie
            Reporter:
            Kamran K. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: