Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-464

isShardedClusterUsingReplicasets() should check all shards

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      FunctionalTestCase::isShardedClusterUsingReplicasets() currently only checks the first document in the config.shards collection. I believe it's possible for each shard to be independently configured (e.g. one shard is a standalone, another is an RS), so it would be prudent for the method to check all results and only return true if all shards use replica sets.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: