Info
SERVER-41696 removes the 'ns' field from indexes in 4.4 upgrade and SERVER-41697 removed the logic from the latest mongod binary completely for renaming the 'ns' field of the index. We should continue to rename the 'ns' field of the index when on FCV4.2 or we can fail to startup on downgrade due to this fassert during startup recovery.
Steps to reproduce:
1. Create a collection db_one on a 4.2 mongod binary
2 Restart using master binary on FCV4.2 and rename a collection from db_one to db_two
The 'ns' field of the index will not be renamed
3. restart again as a 4.2 binary
On startup, we fail to validate the index because the collection name 'db_two' does not match the index 'ns' field 'db_one'
Top User Comments
xgen-internal-githook commented on Tue, 3 Dec 2019 16:46:54 +0000:
Author:
{'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'}
Message: SERVER-44247 Rename index 'ns' fields when renaming collections in FCV 4.2
Branch: master
https://github.com/mongodb/mongo/commit/39e338fe6fa2205c4321fb447e263f4ba42b5ce1