Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4845

Deprecate currentOp/collStats commands by 7.0

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.11.0
    • Affects Version/s: None
    • Component/s: Legacy API
    • None
    • Hide

      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.
      Show
      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.
    • Fully Compatible
    • Needed
    • Hide

      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.
      Show
      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.

          Assignee:
          valentin.kovalenko@mongodb.com Valentin Kavalenka
          Reporter:
          dbeng-pm-bot PM Bot
          Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

            Created:
            Updated:
            Resolved: