|
With new checks (hiddenShardedCollection) of the checkMetadataConsistency command, there is a possibility that check_metadata_consistency.js fails dropping databases and asserting 0 inconsistencies.
The routine of the failure may be the following one:
- Introduce HiddenShardedCollection inconsistency by dropping the database entry in config.database and leaving leftover collection entries.
- Drop database -> since the shards do not find the databases anymore in config.database they won't actually perform the drop operation and they won't clear the leftover collections
- Run cluster level checkMetadataConsistency cmd -> the command will still report the two inconsistencies created in this test case because they were not solved by the drop database operation.
One solution would be to re-write back the database entries we removed here and here, before to drop the databases
|