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.
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.
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.
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.
related to
JAVA-5116Remove deprecated helper for collStats command