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

Rare auth counter behavior is not taken into account by certain tests that use them

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Security 2020-10-05, Security 2020-12-28, Security 2021-01-25, Security 2021-02-08, Security 2021-02-22
    • 35

      If the server receives an auth request that uses saslStart and requires a saslContinue, but never runs saslContinue, then the server will count a received authentication, but not a successful one. There is at least one test that assumes this will never happen, and uses an equal number of received authentication attempts and successful authentication attempts as a metric for correctness. This/these test(s) should take this behavior into account.

      Per sara.golemon:

      > The right solution may be grabbing the auth stats right after rst.awaitSecondaryNodes(); and verify that speculative, cluster and total auths are all >= ($numberOfNodes - 1). Then trigger all host-connections to re-establish, and get mech stats, then make sure received and successful both went up (and by equal amounts).

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            adam.cooper@mongodb.com Adam Cooper (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: