Navigation

Compatibility Changes in MongoDB 5.2

Important

MongoDB 5.0 is a rapid release and is only supported for MongoDB Atlas. MongoDB 5.0 is not supported for use on-premises. For more information, see MongoDB Versioning.

The following 5.2 changes can affect compatibility with older versions of MongoDB.

Removed Parameters

Removed mongod Options

MongodB removes the following mongod options:

Removed mongod Options Description
--cpu MongoDB 5.2 removes the --cpu mongod option.

Existing Indexes Can Be Dropped During an Index Build

Starting in MongoDB 5.2, you can use dropIndexes or db.collection.dropIndexes() to drop existing indexes on the same collection even if there is an index build in progress. In earlier versions, attempting to drop a different index during an in-progress index build results in a BackgroundOperationInProgressForNamespace error.