currentOp shell helper doesn't respect true

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • Hide
      Enterprise repl [direct: primary] o> db.adminCommand(
      ...     {
      ...       currentOp: true,
      ...       $or: [
      ...         { op: "command", "command.createIndexes": { $exists: true }  },
      ...         { op: "none", "msg" : /^Index Build/ }
      ...       ]
      ...     }
      ... ) 

      The currentOp: true piece is supposed to turn on $all which would show active: false connections. However this does not happen and only active: true connections are shown. I can share a modified test that reproduces this.

      Show
      Enterprise repl [direct: primary] o> db.adminCommand( ... { ... currentOp: true , ... $or: [ ... { op: "command" , "command.createIndexes" : { $exists: true } }, ... { op: "none" , "msg" : /^Index Build/ } ... ] ... } ... ) The currentOp: true piece is supposed to turn on $all which would show active: false connections. However this does not happen and only active: true connections are shown. I can share a modified test that reproduces this.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The db.currentOp shell helper is discouraged from use, but it was documented in every active version as being the way to observe index builds, yet it didn't actually turn on idleConnections with the "true" shortcut flag.

              Assignee:
              Unassigned
              Reporter:
              Matt Kneiser
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: