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

Handle sharding errors which disallow further writes in time-series code path

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Execution Team 2021-10-04

      Description

      When performing writes using performUpdates there is internal error handling via handleError that may indicate that no further writes may be performed. One such class of errors is the stale sharding version error. If more write operations are performed an invariant in the sharding subsystem is triggered because the error may only be set once.

      performUpdates does not return if it is allowed to continue with further write operations, just an error code that is not easy to interpret the severity of.

      In our time-series write code path we sometimes perform writes in loops without checking for error. If this sharding error is encountered we would trigger the invariant in the second iteration.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              henrik.edin Henrik Edin
              Reporter:
              henrik.edin Henrik Edin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: