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

Write commands are nesting operations, which breaks index build interruptibility

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None
    • ALL

      As part of SERVER-3067, foreground index builds were made interruptable, but only for user-initiated builds. System-initiated builds were not made interruptable, because we suspected that the code was not prepared to gracefully handle this type of failure. We determined whether an operation was from a user by looking at whether the CurOp was nested or not. Nesting occurs when a DBDirectClient is in use.

      When we added support for Write Commands, the support also utilized this wrapping ability of CurOp. This may not be aggregating the correct operation stats, in addition to breaking index build interruptibility.

      Tests forthcoming.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: