run_validate_collections hook doesn't check secondaries

XMLWordPrintableJSON

    • Minor Change
    • ALL
    • v3.4
    • TIG 2017-10-23
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the run_validate_collections hook, it seems like we only call validate on the primary.

      Take a look at this loop:

      https://github.com/mongodb/mongo/blob/80a01240a1e1ac5ddb9191561046b38a50686ac0/jstests/hooks/run_validate_collections.js#L28-L36

      We get the list of DBs from the secondary, but we call validate using the original mongo shell (which is connected to the primary).

              Assignee:
              Ian Boros
              Reporter:
              Ian Boros
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: