-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: 5.0.19, 6.0.8
-
Component/s: None
-
None
-
Storage Execution
-
ALL
After SERVER-43894 dropping a collection in a sharded cluster will result in a no-op.
However for a replica-set this is not the case for 6.0 and below.
Since we want to keep the user experience as uniform as possible, dropping a collection in replica-set should behave the same.
Currently on a sharded sharded cluster on 6.0
assert.commandWorked(db.runCommand({drop: "view"}));
uncaught exception: Error: command failed: {
"ok" : 0,
"errmsg" : "ns not found",
"code" : 26,
"codeName" : "NamespaceNotFound",
"$clusterTime" : {
"clusterTime" : Timestamp(1690370301, 7),
"signature" :
},
"operationTime" : Timestamp(1690370301, 7)
} with original command request: {
"drop" : "view",
"lsid" :
,
"$clusterTime" : {
"clusterTime" : Timestamp(1690370301, 7),
"signature" :
}
} on connection: connection to 127.0.0.1:27017 :
Currently on a replica-set in 6.0
assert.commandWorked(db.runCommand({drop: "view"}));
{
"info" : "database does not exist",
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1690370511, 1),
"signature" :
},
"operationTime" : Timestamp(1690370511, 1)
}
- is related to
-
SERVER-43894 Make dropping a nonexistent collection a noop
- Closed