Skip to content

Percona Server for MongoDB 5.0.2-1 (Release Candidate) (2021-08-16)

Release date August 16, 2021
Installation Installing Percona Server for MongoDB


With a lot of new features and modifications introduced, we recommend using this release candidate in testing environments only.


Percona Server for MongoDB 5.0.2-1 is not recommended for production use due to the following critical issues: WT-7984 and WT-7995. These issues are fixed in MongoDB 5.0.3 Community Edition and Percona Server for MongoDB 5.0.3-2 (Release Candidate).

Another critical issue that affects the production use of this version is SERVER-68511. It causes inconsistency in sharding metadata when running the movePrimary command on the database that has the Feature Compatibility Version (FCV) set to 4.4 or earlier. Affects MongoDB versions 5.0.0 through 5.0.10 and MongoDB 6.0.0. Upgrade to the fixed version of MongoDB 5.0.11 / Percona Server for MongoDB 5.0.11-10 as soon as possible.

We recommend you to upgrade to Percona Server for MongoDB 5.0.11-10 and run the validate command on every collection on every replica set node.

Read more about the post-upgrade steps in WT-7984 and WT-7995.

Learn how to check if your cluster is affected with sharding metadata inconsistency and remediate from this impact in SERVER-68511.

We are pleased to announce the release candidate of Percona Server for MongoDB 5.0.2-1. It is available for download from Percona website and for installation from Percona Software Repositories.

Percona Server for MongoDB 5.0.2-1 is an enhanced, source-available, and highly-scalable database that is a fully-compatible, drop-in replacement for MongoDB 5.0.2 Community Edition. It includes all features of MongoDB 5.0.2 Community Edition. The most notable among these are the following:

  • Resharding allows you to select a new shard key for a collection and then works in the background to correct any data distribution problems caused by bad shard keys and improve performance.

  • Time Series Collections are aimed at storing sequences of measurements over a period of time. These specialized collections will store data in a highly optimized way that will improve query efficiency, allow data analysis in real-time, and optimize disk usage.

  • Resumable Index Builds means that the index build for a collection continues if a primary node in a replica set is switched to another server or when a server restarts. The build process is saved to disk and resumes from the saved position. This allows DBAs to perform maintenance and not worry about losing the index build in the process.

  • Window operators allow operations on a specified span of documents known as window. $setWindowFields is a new pipeline stage to operate with these documents.

  • Versioned API allows specifying which API version your application communicating with MongoDB runs against. Versioned API detaches the application’s lifecycle from that of the database. As a result, you modify the application only to introduce new features instead of having to maintain compatibility with the new version of MongoDB.

In addition, new aggregation operators such as $count, $dateAdd, $dateDiff, $dateSubtract, $sampleRate and $rand are available with this release.

Percona Server for MongoDB 5.0.2-1 extends this feature set by providing enterprise-level enhancements for free.

Percona Server for MongoDB 5.0.2-1 fully supports MongoDB 5.0.2 Community Edition protocols and drivers and requires no changes to MongoDB applications or code.

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.