Details
Description
View definitions for a database DBNAME are stored in the DBNAME.system.views unsharded collection. Therefore if a view is created during the movePrimary for the DBNAME it can be lost like any other insert to an unsharded collection even if the viewOn collection is sharded.