Mongodb "system.indexes" collections

Hello

I a 3-nodes mongodb ReplicaSet v3.6 (compatibilityVersion 3.4) serving Filecloud,
and I am preparing to migrate to a different 3-nodes mongodb ReplicaSet v4.2.

Using mongodump/mongorestore, the databases migration test went smooth, Except that I see “system.indexes” collections not migrated. Here is an example:

@source mongodb ReplicaSet (3.6)
rsName:PRIMARY> use databaseName
switched to db databaseName
rsName:PRIMARY> show collections
collectionName
system.indexes <— this collection not showing in target as shown below

@target mongodb ReplicaSet (4.2)
rsName:PRIMARY> use databaseName
switched to db databaseName
rsName:PRIMARY> show collections
collectionName

I assume “system.indexes” collections will be created automatically by filecloud once I switched to the new ReplicaSet 4.2. right?

Thanks in advance…

Hello @dia

Please let us know the commands you used to take the database dump and restoration.

Hello @anand.prabhu
here you are…

mongodump -h "10.0.1.1:27017,10.0.1.2:27017,10.0.1.3:27017" --db databaseName --out /tmp/mongodb

mongorestore -h "192.168.0.1:27017" --drop --db databaseName --dir /tmp/mongodb

Hello @dia

We have checked this on Mongo version 4.2. This could be a MongoDB architecture change.

Once you switch to the new cluster, please check and verify the functionalities before going live.

Thanks @anand.prabhu
You are right. Starting in MongoDB 4.2, .system.indexes has been removed.
hxxps://docs.mongodb.com/manual/reference/system-collections/