Details
Description
Migration fails to refresh metadata after a successful migration commit because the config server is shutting down. This is logged here. This failed remote metadata refresh causes the chunk metadata to get cleared. However, this code here is returning a successful migration commit status, so the shard moveChunk command continues on to do range deletion like everything is fine. And then MetadataManager::cleanUpRange invariants because there is no chunk metadata.