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

listCollections command through mongos should retry on NotMaster errors

    • Sharding EMEA

      Currently, the listCollections command on mongos uses DBClientReplicaSet::query, which does not retry on NotMaster errors.

      This is a problem for concurrency stepdown suites (like the config stepdown suite introduced in SERVER-30677), that call listCollections through mongos as part of validating the state of the cluster between workloads, and because shardCollection, which is also called between workloads, involves calling listCollections and can fail if the config server has a stale view of the cluster.

      The same is true for listIndexes, which uses the same cursorCommandPassthrough helper.

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: