Replace kNoRetry by kStrictlyNotIdempotent in mongos write_ops

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The new error label indicate when something is safe to retry, no matter the nature of the command, even getMore.

      Currently, the mongos ignore retryability, most notably in all write ops. The following function must be evaluated if changing kNoRetry to kStrictlyNotIdenpotent:

      • executeChildBatches (bulk_write_exec.cpp)
      • exhaustCursorForReplyItems (bulk_write_exec.cpp
      • executeChildBatches (batch_write_exec.cpp)
      • WriteBatchExecutor::_execute (write_batch_executor.cpp)

      This should make writes able to retry on error with the label RetryableError.

            Assignee:
            Silvia Surroca
            Reporter:
            Guillaume Racicot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: