ExportXMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • Repl 2026-09-14, 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 findAndModify retry-detection call site for SERVER-107365 (retried writes latency histogram).

      Site

      src/mongo/db/commands/query_cmd/find_and_modify.cpp (~L471-475)

      The retry branch already has the OplogEntry in hand, so compute

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

      and call

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

      alongside the existing incrementRetriedStatementsCount().

      Test

      Add one test asserting a retried findAndModify 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: