[DRIVERS-407] Drop support for MongoDB 2.4 Created: 11/Aug/17  Updated: 28/Oct/23  Resolved: 30/Jun/20

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on RUST-44 Drop support for MongoDB 2.4 Closed
depends on CDRIVER-2243 Drop support for MongoDB 2.4 Closed
depends on CSHARP-2032 Drop support for MongoDB 2.4 Closed
depends on DRIVERS-422 Improve server compatibility error me... Closed
depends on GODRIVER-59 Drop support for MongoDB 2.4 Closed
depends on NODE-1122 Drop support for MongoDB 2.4 Closed
depends on PHPC-995 Drop support for MongoDB 2.4 Closed
depends on PHPLIB-282 Drop support for MongoDB 2.4 Closed
depends on PYTHON-1299 Drop support for MongoDB 2.4 Closed
depends on RUBY-1237 Drop support for MongoDB 2.4 Closed
depends on CXX-1421 Drop support for MongoDB 2.4 Closed
depends on JAVA-2580 Drop support for MongoDB 2.4 Closed
depends on MOTOR-176 Drop support for MongoDB 2.4 Closed
Related
Driver Compliance:
Key Status/Resolution FixVersion
PYTHON-1299 Fixed 3.6
NODE-1122 Fixed 3.0.0
SCALA-333 Works as Designed 2.2.0
CSHARP-2032 Fixed 2.11.0
PERL-800 Won't Fix
RUBY-1237 Fixed 2.5.0
JAVA-2580 Fixed 3.6.0
CXX-1421 Gone away
PHPC-995 Done 1.4.0-beta1, 1.4.0
GODRIVER-59 Done
CDRIVER-2243 Fixed 1.9.0
PHPLIB-282 Fixed 1.3.0
MOTOR-176 Fixed 1.2
SWIFT-171 Won't Fix
RUST-44 Works as Designed

 Description   

MongoDB 2.4 reached end of life in March of 2016, so drivers can remove support for it.

A driver should bump its minimum supported wire version to 2, making 2.6 the minimum supported server version (For some reason, MongoDB 2.6 bumped maxWireVersion to 2 rather than 1. MongoDB 2.4 has no maxWireVersion, which implies a maxWireVersion of 0).

Code that can be removed as a result of the min wire version bump:

  • Support for the legacy wire protocol for writes (OP_INSERT/UPDATE/DELETE) for acknowledged writes. If the driver already uses write commands for unacknowledged writes (async drivers like .NET or node), support for these wire protocol messages can be removed entirely.
  • Support for creating and dropping indexes in the system.indexes collection (NOTE: listIndexes was added in 3.0, must continue to support listing indexes via system.indexes in 2.6)
  • Support for user management via writes to and reads from system.users collection
  • Support for fallback to inline results for the aggregate command when cursor is requested

Any conditional logic in tests that check for wire-version-less-than-2/server-version-less-than-2.6 can also be removed.



 Comments   
Comment by Githook User [ 14/Dec/17 ]

Author:

{'name': 'Kevin Secrist', 'email': 'kevin.secrist@rackspace.com', 'username': 'kevin-secrist'}

Message: Removing support for MongoDB 2.6 in v2.5 release notes

As part of https://jira.mongodb.org/browse/DRIVERS-407, support for server versions below 2.6 was removed in https://github.com/mongodb/mongo-csharp-driver/commit/c1f4e87edb410862f87976231bb0aac58de09856
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b9137992e6caab15900c406d1c34468b541c1710

Comment by Bernie Hackett [ 21/Aug/17 ]

Yes, fixed.

Comment by A. Jesse Jiryu Davis [ 21/Aug/17 ]

behackett or jeff.yemin is it correct that our new minWireVersion should be 2? If so can add that to the steps above?

Generated at Thu Feb 08 08:21:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.