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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: