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

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

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

      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 Unassigned
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: