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

Allow dropDatabase (and dropCollection) to succeed when index build is in progress

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Linked BF Score:
      7

      Description

      Currently dropping a database while a background index build is in progress fails

      > db.dropDatabase()
      {
      	"ok" : 0,
      	"errmsg" : "cannot perform operation: a background operation is currently running for database test",
      	"code" : 12586,
      	"codeName" : "BackgroundOperationInProgressForDatabase"
      }
      

      This also results in initial sync's "dropAllDatabasesExceptLocal" failing. Since we won't be needing the index, we should just cancel the build.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              matthew.russotto Matthew Russotto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: