Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
-
Sharding EMEA
-
ALL
-
Sharding EMEA 2023-07-10
Description
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
|
Attachments
Issue Links
- split to
-
SERVER-78805 Allow Customers to Drop Non-System Created Collections on the Config Database
-
- Backlog
-
-
SERVER-78806 Creation of Non-System Collections and Views on the Config Database Should Not be Allowed
-
- Backlog
-