[CXX-2637]  Deprecate currentOp/collStats commands by 7.0 Created: 18/Jan/23  Updated: 09/Nov/23  Resolved: 02/May/23

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Related
Server Compat: 6.2
Quarter: FY24Q2
Upstream Changes Summary:

DRIVERS-2232:

  • Drivers should sync spec test updates to mongodb/specifications@6632b76 (re: mongodb/specifications#1402).
  • For drivers that have helpers for collStats or currentOp, the helpers should be adjusted to use the $collStats / $currentOp aggregation pipeline stages.  Alternatively, drivers can deprecate these helpers for future removal.  This is left to the discretion of drivers.
  • Drivers should audit their driver-specific tests and documentation examples (see: DRIVERS-448) for any usages of the `currentOp` or `collStats` commands.

 Description   

This ticket was split from DRIVERS-2232, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 28/Apr/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CXX-2637 Remove use of `collStats` and `currentOp` (#960)

  • sync specification tests to commit 6632b7606e74c6e83ee2d80b7571f55485c7ff33
  • remove runCommand Example 2

The example removed from DRIVERS-448.

  • replace currentOp command with $currentOp aggregation stage
  • remove check for server version 3.5.8

C driver 1.21.0 requires server version 3.6 (minWireVersion=6)
C++ driver 3.7.x requirees C driver 1.22.1 or higher.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/52a1150d6fcb8211a6fe6652813441551da3a63e

Generated at Wed Feb 07 22:06:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.