ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Authentication
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Detailed steps to reproduce the problem?

      The auth spec says:

      Drivers MUST immediately attempt a reauthentication on the connection using suitable credentials... This attempt MUST be irrespective of whether the operation is considered retryable.

      This infinite loop is in Operation.Execute, which every command goes through, and has been on master since GODRIVER-3278. Any operation with an Authenticator set is affected, which is basically every command a client sends. See here for a repro: https://github.com/10gen/go-driver-tools/blob/5e9d6c22ffd87fae3af2d13584fed181a9b85ee4/preston/repros/2.9.2/godriver_4187_test.go#L164

      Definition of done: what must be done to consider the task complete?

      • Operation.Execute reauthenticates once per operation onĀ 391
      • A second 391 after a successful reauthentication is returned to the caller, per auth spec: "Any errors ... encountered during the subsequent re-attempt of the operation MUST be raised to the user."

      The exact Go version used, with patch level:

      NA

      The exact version of the Go driver used:

      2.9.2

      Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.

      testcontainers + latest

      The operating system and version (e.g. Windows 7, OSX 10.8, ...)

      NA

      Security Vulnerabilities

      NA

            Assignee:
            Unassigned
            Reporter:
            Preston Vasquez
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: