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

Use explicit read concern in sharding test index consistency hook

    • Fully Compatible
    • ALL
    • Sharding 2020-02-10, Sharding 2020-02-24
    • 50

      When shutting down a ShardingTest, a hook is run that verifies the indexes for each sharded collection exist on all shards with chunks for that collection. The hook uses an aggregation and find, but doesn't specify a read concern for either, so it would inherit a cluster wide default read concern if one is set, potentially leading to unexpected results. Instead the hook should use explicit read concerns.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: