Skip to content

Release candidate for 2.24.0#3024

Merged
jamis merged 1 commit intomongodb:masterfrom
comandeo-mongo:rc-2.24.0
Apr 20, 2026
Merged

Release candidate for 2.24.0#3024
jamis merged 1 commit intomongodb:masterfrom
comandeo-mongo:rc-2.24.0

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

@comandeo-mongo comandeo-mongo commented Apr 20, 2026

The MongoDB Ruby team is pleased to announce version 2.24.0 of the mongo gem - a pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases. This is a new minor release in the 2.x series of MongoDB Ruby Driver.

Install this release using RubyGems via the command line as follows:

gem install -v 2.24.0 mongo

Or simply add it to your Gemfile:

gem 'mongo', '2.24.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

  • Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features. The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.

    • Supported on all commands.
    • Custom application retry logic may need to be adjusted to avoid retrying too long.
    • Upgrade is recommended to avoid impacts of server changes related to overload errors.
      • If not upgrading, custom application retry logic may need to be adjusted to handle higher rates of overload errors. See Overload Errors.
    • Add URI option maxAdaptiveRetries to configure the maximum number of retries for operations that fail with a SystemOverloadedError (default: 2).
    • Add URI option enableOverloadRetargeting to control whether retries of SystemOverloadedError will attempt to use a different server (default: false).
  • Added serverMonitoringMode option configures which server monitoring protocol to use. Valid modes are
    "stream", "poll", or "auto". The default value is "auto":

    • With "stream" mode, the client use the streaming protocol when the server supports it or fall back to the polling protocol otherwise.
    • With "poll" mode, the client use the polling protocol.
    • With "auto" mode, the client behave the same as "poll" mode when running on a FaaS platform or the same as "stream" mode otherwise. The client detects that it's running on a FaaS platform via the same rules for generating the client.env handshake metadata field in the MongoDB Handshake spec.
  • RUBY-3381 RUBY-3640 Remove support for server versions 3.6 and 4.0 (PR)

Bug Fixes

@comandeo-mongo comandeo-mongo requested a review from a team as a code owner April 20, 2026 11:42
Copilot AI review requested due to automatic review settings April 20, 2026 11:42
@comandeo-mongo comandeo-mongo added the release-candidate Identifies PR's that represent potential new releases. label Apr 20, 2026
@comandeo-mongo comandeo-mongo requested a review from jamis April 20, 2026 11:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prepares the repository for the mongo gem 2.24.0 release candidate by updating the authoritative version values used by release automation and gem packaging.

Changes:

  • Bump release version in product.yml to 2.24.0.
  • Bump Mongo::VERSION in lib/mongo/version.rb to 2.24.0.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
product.yml Updates the product/release metadata version to 2.24.0.
lib/mongo/version.rb Updates the gem’s runtime version constant to 2.24.0 (used by gemspec).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamis jamis merged commit f68d676 into mongodb:master Apr 20, 2026
208 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-candidate Identifies PR's that represent potential new releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants