-
Type:
Bug
-
Status: Closed
-
Priority:
Critical - P2
-
Resolution: Fixed
-
Affects Version/s: 3.6.7, 4.0.2
-
Component/s: Storage
-
Labels:None
-
Backwards Compatibility:Fully Compatible
-
Operating System:ALL
-
Backport Requested:v4.0, v3.6
-
Sprint:Storage NYC 2018-09-10, Storage NYC 2018-09-24
-
Case:
In a replica set running with the storage engine MMAPv1, a collection rename with the dropTarget option set to true may fail when the destination namespace refers to a collection with long index names approaching the MMAP namespace limit of 127 characters.
The renameCollection operation would return an error with the code 10080 and a message containing the target namespace (the collection being replaced):
{
|
"errmsg" : "ns name test.system.drop.1536175136i10t1.t.$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (size: 155) too long, max size is 127 bytes",
|
"code" : 10080,
|
....
|
}
|