Docs Home → Develop Applications → MongoDB Manual
Compatibility Changes in MongoDB 5.2
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
The following 5.2 changes can affect compatibility with older versions of MongoDB.
$setWindowFields
Stage with Transactions and Snapshot Read Concern
In MongoDB versions earlier than 5.3, the $setWindowFields
aggregation pipeline stage cannot be used with transactions or the "snapshot"
read concern.
Removed Parameters
Removed mongod
Options
MongodB removes the following mongod
options:
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.