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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Index Maintenance
    • None
    • 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

              Unassigned Unassigned
              matthew.russotto@mongodb.com Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: