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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • 7
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: