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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      STM 2021-05-17
    • Linked BF Score:
      49
    • Story Points:
      2

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            siran.wang Siran Wang
            Reporter:
            pavithra.vetriselvan Pavithra Vetriselvan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: