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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0, v3.6
    • Sprint:
      Sharding 2019-10-21
    • Linked BF Score:
      4

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: