ExportXMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • Repl 2026-09-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      *This summary was written by AI and I do not endorse it: *

      Summary

      Wire retry-delay recording at the update retry-detection call site for SERVER-107365 (retried writes latency histogram).

      Site

      src/mongo/db/query/write_ops/write_ops_exec.cpp (~L1885-1901)

      The retry branch already fetches the OplogEntry, so compute

      millis = Date_t::now() - entry->getWallClockTime()

      and call

      RetryableWritesStats::get(opCtx)->recordRetriedWriteDelay(millis)

      alongside incrementRetriedStatementsCount().

      Test

      Add one test asserting a retried update lands one sample in the expected bucket (SERVER-107365 Task 3: one test per call site).

      References

            Assignee:
            Indy Prentice
            Reporter:
            Indy Prentice
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: