[JAVA-4845]  Deprecate currentOp/collStats commands by 7.0 Created: 18/Jan/23  Updated: 22/Aug/23  Resolved: 11/Aug/23

Status: Closed
Project: Java Driver
Component/s: Legacy API
Affects Version/s: None
Fix Version/s: 4.11.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Valentin Kavalenka
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Issue split
Related
related to JAVA-5116 Remove deprecated helper for collStat... Closed
Server Compat: 6.2
Quarter: FY24Q3
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.
Backwards Compatibility: Fully Compatible
Documentation Changes: Needed
Documentation Changes Summary:

We need to reflect the following in what's new:

  • com.mongodb.DBCollection.getStats/isCapped were deprecated because they use the collStats command, which is deprecated since server release 6.2.
  • If a user uses server release 3.4 or newer, the $collStats aggregation pipeline stage should be used via the DBCollection.aggregate methods instead of the DBCollection.getStats method.
  • Instead of the DBCollection.isCapped method, use the $collStats aggregation pipeline stage and inspect the storageStats.capped field.

 Comments   
Comment by Githook User [ 11/Aug/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Deprecate `currentOp`/`collStats` commands (#1175)

JAVA-4845
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/40e2d1fa327bf351c99660a499db23ea56413bf9

Comment by Jeffrey Yemin [ 24/Apr/23 ]

There's a helper in the legacy API that we can consider deprecating.

Generated at Thu Feb 08 09:03:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.