Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1572

Reduce race conditions in SDAM error handling

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Security Level: Public
    • Labels:
      None

      Description

      Summary of required driver work:

      Reduce race conditions in SDAM error handling. In summary, drivers will update their SDAM and error handling logic to:

      Add topologyVersion field to ServerDescription.
      Ignore stale errors based on generation number and topologyVersion.
      Implement SDAM spec tests for topologyVersion comparison.
      Implement SDAM spec tests for handling mock application errors with the new tests in the tests/errors directory.

      Spec changes:

      Spec commit (part 1 of 2):
      Author:

      {'name': 'Shane Harvey', 'email': 'shane.harvey@mongodb.com', 'username': 'ShaneHarvey'}

      Message: SPEC-1663 Reduce race conditions in SDAM error handling (#781)
      Add topologyVersion field to ServerDescription.
      Add SDAM spec tests for topologyVersion comparison.
      Clients ignore stale errors based on generation number and topologyVersion.
      Branch: master
      https://github.com/mongodb/specifications/commit/7dd9c008be6edaf65368787d5e91c2ac3aeb95b8

      Spec commit (part 2 of 2):
      Author:

      {'name': 'Shane Harvey', 'email': 'shane.harvey@mongodb.com', 'username': 'ShaneHarvey'}

      Message: SPEC-1663 Add SDAM tests for detecting stale application errors (#787)
      Add applicationErrors to configure mock errors.
      Add pool generation to outcome assertion.
      Add optional "description" field to each phase.
      Add tests for network errors before/after handshake completes.
      Add tests for not master errors pre/post 4.2.
      Branch: master
      https://github.com/mongodb/specifications/commit/371e95b18f4783d485218bb1565970be10568e8a
      See DRIVERS-1187 for updated details.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              isabella.siu Isabella Siu
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: