Docs Menu

Docs HomeDevelop ApplicationsMongoDB Manual

Compatibility Changes in MongoDB 5.2

On this page

  • $setWindowFields Stage with Transactions and Snapshot Read Concern
  • Removed Parameters
  • Existing Indexes Can Be Dropped During an Index Build

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

In MongoDB versions earlier than 5.3, the $setWindowFields aggregation pipeline stage cannot be used with transactions or the "snapshot" read concern.

MongodB removes the following mongod options:

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

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.

←  Release Notes for MongoDB 5.2Release Notes for MongoDB 5.1 →