This page describes changes and new features introduced in MongoDB Mongosync 1.21.
1.21.0 Release
June 25, 2026
New Features
Adds the
lagobject to the/progressAPI response. Thelagobject reports synchronization lag asoverallLagSeconds,crudLagSeconds, andddlLagSeconds. ThelagTimeSecondsfield is deprecated in favor oflag.overallLagSeconds. Seeprogressfor more details.
Fixed Issues
Fixes an issue where create, read, update, and delete (CRUD) events applied during Change Event Application (CEA) were sometimes double-counted in metrics and trace-level log messages.
Fixes an issue where the embedded verifier could get stuck, causing some collections to never enter the initial hashing phase and preventing commit.
Fixes an issue where
mongosyncincorrectly calculated remaining oplog time for sharded clusters, which resulted in an incorrectestimatedOplogTimeRemainingfield or spurious warning messages in the/progressresponse.Fixes an issue where calling
/resumevery quickly aftermongosyncstarts could causemongosyncto crash. Calling/resumebeforemongosyncreaches thePAUSEDstate now returns an error.
Other Changes
canCommitisfalsewhenmongosyncor the embedded verifier reports more than 30 seconds of lag. Calling/commitwhencanCommitisfalsereturns an error. Seecommitandprogressfor more details.Updates the behavior of
estimatedTotalBytesandestimatedCopiedBytesin the/progressAPI response. IfestimatedCopiedBytesexceedsestimatedTotalBytesduring collection copy,mongosyncraisesestimatedTotalBytesto equalestimatedCopiedBytes. After collection copy, both values are equal. Seeprogressfor more details.When resuming a migration,
mongosyncnow verifies that the--cluster0and--cluster1connection strings have not changed since the migration started. This check compares hostnames and ports to prevent potential data loss from accidentally swapping source and destination clusters.
Live Upgrades
Live upgrades to mongosync 1.21 are not supported.
Minimum Supported Version
For information on minimum supported versions, see MongoDB Server Version Compatibility.
For best performance, upgrade your source and destination clusters to the most recent MongoDB Server patch release prior to migration. For more information, see Upgrade to the Latest Self-Managed Patch Release of MongoDB.