Use explicit read concern in sharding test index consistency hook

XMLWordPrintableJSON

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

      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
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: