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

Allow collections and databases to be dropped in standalone mode with unfinished replicated index builds

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: 4.4.3
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Hide

      Steps to Reproduce

      MongoDB shell version v4.4.3
      > db.zz_10521_1605225225_1.drop()
      uncaught exception: Error: error doing query: failed: network error while attempting to run command 'drop' on host '10.10.10.13:27017'  :
      DB.prototype.runCommand@src/mongo/shell/db.js:169:19
      DBCollection.prototype.drop@src/mongo/shell/collection.js:709:11
      @(shell):1:1
      
      /var/log/mongodb/mongod.log
      {"t":{"$date":"2021-01-05T22:08:24.599+02:00"},"s":"F",  "c":"-",        "id":23079,   "ctx":"conn2","msg":"Invariant failure","attr":{"expr":"coll->getIndexCatalog()->numIndexesInProgress(opCtx) == 0","file":"src/mongo/db/catalog/drop_collection.cpp","line":214}}
      {"t":{"$date":"2021-01-05T22:08:24.599+02:00"},"s":"F",  "c":"-",        "id":23080,   "ctx":"conn2","msg":"\n\n***aborting after invariant() failure\n\n"}
      {"t":{"$date":"2021-01-05T22:08:24.599+02:00"},"s":"F",  "c":"CONTROL",  "id":4757800, "ctx":"conn2","msg":"Writing fatal message","attr":{"message":"Got signal: 6 (Aborted).\n"}}
      

      Expected Results

      deleted collection

      Actual Results

      uncaught exception: Error: error doing query: failed: network error while attempting to run command 'drop' on host '10.10.10.13:27017' :

      Show
      Steps to Reproduce MongoDB shell version v4.4.3 > db.zz_10521_1605225225_1.drop() uncaught exception: Error: error doing query: failed: network error while attempting to run command 'drop' on host '10.10.10.13:27017' : DB.prototype.runCommand@src/mongo/shell/db.js:169:19 DBCollection.prototype.drop@src/mongo/shell/collection.js:709:11 @(shell):1:1 /var/log/mongodb/mongod.log { "t" :{ "$date" : "2021-01-05T22:08:24.599+02:00" }, "s" : "F" , "c" : "-" , "id" :23079, "ctx" : "conn2" , "msg" : "Invariant failure" , "attr" :{ "expr" : "coll->getIndexCatalog()->numIndexesInProgress(opCtx) == 0" , "file" : "src/mongo/db/catalog/drop_collection.cpp" , "line" :214}} { "t" :{ "$date" : "2021-01-05T22:08:24.599+02:00" }, "s" : "F" , "c" : "-" , "id" :23080, "ctx" : "conn2" , "msg" : "\n\n***aborting after invariant() failure\n\n" } { "t" :{ "$date" : "2021-01-05T22:08:24.599+02:00" }, "s" : "F" , "c" : "CONTROL" , "id" :4757800, "ctx" : "conn2" , "msg" : "Writing fatal message" , "attr" :{ "message" : "Got signal: 6 (Aborted).\n" }} Expected Results deleted collection Actual Results uncaught exception: Error: error doing query: failed: network error while attempting to run command 'drop' on host '10.10.10.13:27017' :
    • Execution Team 2022-10-17, Execution Team 2022-10-31

      MongoDB Standalone Server with authorization. Proxmox, Ubuntu LXC container.

      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 18.04.1 LTS
      Release: 18.04
      Codename: bionic

      db version v4.4.3
      Build Info: {
      "version": "4.4.3",
      "gitVersion": "913d6b62acfbb344dde1b116f4161360acd8fd13",
      "openSSLVersion": "OpenSSL 1.1.1 11 Sep 2018",
      "modules": [],
      "allocator": "tcmalloc",
      "environment":

      { "distmod": "ubuntu1804", "distarch": "x86_64", "target_arch": "x86_64" }

      }

      Problem Description

      there were 20 collections in the current database; 3 are not deleted, error; after an attempt to delete, there is no way to connect to the database; only restart helps

            Assignee:
            shinyee.tan@mongodb.com Shin Yee Tan
            Reporter:
            vkatochka@protonmail.com Vitalii K.
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: