Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2972

Update SDAM spec to include error messages for electionId/setVersion mismatches

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: SDAM
    • Needed

      Summary

      According to the Server Discovery and Monitoring (SDAM) specification, the drivers update the topology with a default ServerDescription that has an UNKNOWN status and an empty error field when a stale primary is detected. We could include a descriptive error message in the ServerDescription.error field to enhance diagnostic capabilities in environments and it seems, at first glance, to be a low-effort improvement. This improvement was initially discussed in the HELP-63892 ticket where the proposal arose.

      Motivation

      Who is the affected end user?

      Tech support, and users.

      How does this affect the end user?

      Users might face confusion when drivers cannot connect to the cluster due to potential electionId/setVersion mismatches, especially in environments where logging is not enabled. This lack of clarity can lead to troubleshooting delays.

      How likely is it that this problem or use case will occur?

      The issue might not occur frequently, as judged by the rate of reported issues.

      If the problem does occur, what are the consequences and how severe are they?

      If the problem occurs, it may lead to delays in troubleshooting.

      Is this issue urgent?

      Not urgent

      Acceptance Criteria

      Update SDAM specification to clearly define the new error message for electionId/setVersion mismatches in the ServerDescription.error field.

            Assignee:
            Unassigned Unassigned
            Reporter:
            slav.babanin@mongodb.com Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: