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

views and collections can be created but not dropped in config db on sharded cluster

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding EMEA
    • ALL
    • Sharding EMEA 2023-07-10

      mongos> use config
      switched to db config
      mongos> db.createView("view", "shards", [])
      {
      	"ok" : 1,
      	"$clusterTime" : {
      		"clusterTime" : Timestamp(1678225680, 2),
      		"signature" : {
      			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      			"keyId" : NumberLong(0)
      		}
      	},
      	"operationTime" : Timestamp(1678225680, 2)
      }
      mongos> db.view.drop()
      uncaught exception: Error: drop failed: {
      	"ok" : 0,
      	"errmsg" : "Cannot drop collection in 'config' database in sharded cluster",
      	"code" : 20,
      	"codeName" : "IllegalOperation",
      	"$clusterTime" : {
      		"clusterTime" : Timestamp(1678225682, 1),
      		"signature" : {
      			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      			"keyId" : NumberLong(0)
      		}
      	},
      	"operationTime" : Timestamp(1678225682, 1)
      } :
      _getErrorWithCode@src/mongo/shell/utils.js:25:13
      DBCollection.prototype.drop@src/mongo/shell/collection.js:713:15
      @(shell):1:1
      

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: