Skip to content

2.7.0.rc0

Pre-release
Pre-release
Compare
Choose a tag to compare
@p-mongo p-mongo released this 23 Jan 01:27
· 1531 commits to master since this release

This preview of the upcoming 2.7.0 feature release of the Ruby driver has the following major new features:

  • RUBY-1431 SDAM and Server Selection Spec Compliance. Large portions of SDAM code have been rewritten to bring the driver in compliance with published MongoDB driver specifications. No changes to applications using MongoDB are required, however applications should see the following benefits:
    • Faster server selection (including during failover in replica sets)
    • Faster client initialization
    • Better concurrency as more I/O is now done in background threads
    • Improved logging and diagnostics of server discovery, topology changes and removal of servers from topology
    • Better resiliency to connection and authentication errors
    • SDAM events are now published in a more consistent manner
    • Monitoring connections no longer authenticate, lessening load on the cluster
    • Topology and server description objects are no longer mutated in place, simplifying change tracking for applications/APM implementors
    • Locks have been added to synchronize topology updates
    • It is possible to wait for background monitoring threads to terminate when closing the client
  • RUBY-1559 Unified URI Options. This adds support for a multitude of options in MongoDB URIs to the driver, in a way consistent with other MongoDB-maintained drivers.
  • RUBY-1574 Convenient API for Transactions. This adds a with_transaction method to session objects to provide an easier way to retry operations in a transaction until they commit successfully.

The following minor improvements have also been made:

The following bugs have been fixed:

As well, a number of improvements have been made to tutorial and API documentation of the driver. Full list of fixed issues may be found here.

This version of the driver has been tested with Ruby 2.6.

Lacking major issues we expect to release 2.7.0 final in about a week.