Details
Description
Currently, the database_and_shard_versioning_all_commands.js iterates through every command, and for commands that send databaseVersion, it checks that the shard's cached databaseVersion was refreshed as a result of the command being sent.
To make the shard's cached databaseVersion stale in between each command, the test drops the database from the shard.
This ticket is to extend the test to iterate through the commands a second time, but this time use movePrimary instead of dropDatabase. This should clear the shard's cached metadata (as part of the movePrimary critical section), so the next command with a databaseVersion should cause the shard to refresh and find the new databaseVersion.