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

Blacklist tests that use Mongo.logout() from stepdown suites

    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Sharding 2019-10-21
    • 4

      Mongo.logout() doesn't go through runCommand(), which is where the stepdown suites catch and retry on stepdown errors. The stepdown suites aren't meant to test auth, so tests that call logout on a mongo object should be blacklisted from them. One way to do this is to override Mongo.logout() to throw in these suites (like what's done here) and add the tag requires_non_retryable_commands to any tests that use that method.

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

              Created:
              Updated:
              Resolved: