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

Move CurOp code out of writeConflictRetry and other exception_utils

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Execution Team 2024-09-30

      We currently track the number of write conflicts in curop.

      It is incremented from various calls in exception_util with 
      CurOp::get(opCtx)->debug().additiveMetrics.incrementWriteConflicts(1);
      We should consider storing this metric somewhere (outside of curop) that curop can check instead.

            Assignee:
            shinyee.tan@mongodb.com Shin Yee Tan
            Reporter:
            shinyee.tan@mongodb.com Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: