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

currentOp of replicated createIndexes does not display command name

    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-03

      Here is an example of a replicated createIndexes currentOp entry:

      {
      	"host" : "foo:20021",
      	"desc" : "repl index builder 7",
      	"active" : true,
      	"currentOpTime" : "2018-05-03T15:57:06.372-0400",
      	"opid" : 363,
      	"secs_running" : NumberLong(6),
      	"microsecs_running" : NumberLong(6705181),
      	"op" : "none",
      	"ns" : "test.system.indexes",
      	"command" : {
      		"v" : 2,
      		"key" : {
      			"x" : 1
      		},
      		"name" : "x_1",
      		"background" : true,
      		"ns" : "test.coll"
      	},
      	"msg" : "Index Build (background) Index Build (background): 100/100 100%",
      	"progress" : {
      		"done" : 100,
      		"total" : 100
      	},
      	"numYields" : 6,
      	"locks" : {
      		"Global" : "w",
      		"Database" : "w",
      		"Collection" : "w"
      	},
      	"waitingForLock" : false,
      	"lockStats" : {
      		"Global" : {
      			"acquireCount" : {
      				"w" : NumberLong(7)
      			},
      			"acquireWaitCount" : {
      				"w" : NumberLong(1)
      			},
      			"timeAcquiringMicros" : {
      				"w" : NumberLong(61)
      			}
      		},
      		"Database" : {
      			"acquireCount" : {
      				"w" : NumberLong(7),
      				"W" : NumberLong(1)
      			}
      		},
      		"Collection" : {
      			"acquireCount" : {
      				"w" : NumberLong(7)
      			}
      		}
      	}
      } 

       

      I believe "createIndexes" is being stripped from the command object here.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: