-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
-
v4.2
-
(copied to CRM)
With MongoDB 4.2 the Index Name Length restriction was removed (SERVER-32959), however when running latest mongorestore while targeting a 4.2.x cluster the following error can still be thrown:
2020-02-26T03:00:08.839+0000 Failed: xxx.yyy: error creating indexes for xxx.yyy: cannot restore index with namespace 'xxx.yyy.$meta.groupGeocode.coordinates_2dsphere_meta.groupTransactionDate_-1_meta.groupTimestamp_-1': namespace is too long (max size is 127 bytes)
mongorestore should be testing the target cluster's fCV and if it's < 4.2 the string length test can still be applied.
- backported by
-
TOOLS-2526 [v4.2] mongorestore may incorrectly validate index name length before calling createIndexes
- Closed
-
TOOLS-2527 [v4.2] mongorestore may incorrectly validate index name length before calling createIndexes
- Closed
- related to
-
SERVER-32959 Remove index name length limit
- Closed
- links to