Attach NoWritesPerformed error label to overload errors

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Component/s: Backpressure
    • None

      If the server does not add NoWritesPerformed error label as described in SERVER-113311, we may need to have the driver automatically add the NoWritesPerformed label to all errors that have the SystemOverloadedError label. Otherwise the driver can raise a misleading error message to the user which make it appear that a command was never attempted. The logic would look like:

      if error.has_error_label("SystemOverloadedError"):
          error.add_error_label("NoWritesPerformed")
      

      The one concern to discuss is if there are cases where the server would intentionally omit the NoWritesPerformed.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: