Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56187

replicaset.py should use countDocuments() because count() is deprecated

    • Fully Compatible
    • STM 2021-05-17
    • 49
    • 2

      replicaset.py runs count() on local.system.replset to decide whether to initiate a test fixture replica set. This version of count() may be unreliable after unclean shutdowns and was deprecated in pymongo 3.7. We should use countDocuments() instead.

      While we're here, it might also be worth adding logging to say we're skipping initialization.

            Assignee:
            siran.wang@mongodb.com Siran Wang (Inactive)
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: