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

XMLWordPrintableJSON

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

      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.

            Assignee:
            Henrik Edin
            Reporter:
            Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: