|
As of commit e5b21a774777fd1a1d89959b9e78c6eb18580c32, the db.currentOp() looks like:
primary:
foo:PRIMARY> db.currentOp({ns: 'test.t'})
|
{
|
"inprog" : [
|
{
|
"type" : "op",
|
"host" : "benetymbp3.fios-router.home:30001",
|
"desc" : "IndexBuildsCoordinatorMongod-0",
|
"active" : true,
|
"currentOpTime" : "2020-04-13T14:25:30.281-04:00",
|
"opid" : 1185,
|
"secs_running" : NumberLong(151),
|
"microsecs_running" : NumberLong(151964560),
|
"op" : "command",
|
"ns" : "test.t",
|
"command" : {
|
"createIndexes" : "t",
|
"indexes" : [
|
{
|
"v" : 2,
|
"key" : {
|
"a" : 1
|
},
|
"name" : "a_1"
|
}
|
],
|
"lsid" : {
|
"id" : UUID("e34da77e-3858-453a-9f07-8dbcace3d8be")
|
},
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1586802160, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"$db" : "test"
|
},
|
"msg" : "Index Build: scanning collection Index Build: scanning collection: 1/1 100%",
|
"progress" : {
|
"done" : 1,
|
"total" : 1
|
},
|
"numYields" : 229112,
|
"locks" : {
|
"ReplicationStateTransition" : "w",
|
"Global" : "w",
|
"Database" : "w",
|
"Collection" : "w"
|
},
|
"waitingForLock" : false,
|
"lockStats" : {
|
"ReplicationStateTransition" : {
|
"acquireCount" : {
|
"w" : NumberLong(229115)
|
}
|
},
|
"Global" : {
|
"acquireCount" : {
|
"w" : NumberLong(229115)
|
}
|
},
|
"Database" : {
|
"acquireCount" : {
|
"w" : NumberLong(229115)
|
}
|
},
|
"Collection" : {
|
"acquireCount" : {
|
"w" : NumberLong(229114),
|
"W" : NumberLong(1)
|
}
|
},
|
"Mutex" : {
|
"acquireCount" : {
|
"r" : NumberLong(3)
|
}
|
}
|
},
|
"waitingForFlowControl" : false,
|
"flowControlStats" : {
|
"acquireCount" : NumberLong(229114),
|
"timeAcquiringMicros" : NumberLong(326892)
|
}
|
},
|
{
|
"type" : "op",
|
"host" : "benetymbp3.fios-router.home:30001",
|
"desc" : "conn11",
|
"connectionId" : 11,
|
"client" : "127.0.0.1:57506",
|
"appName" : "MongoDB Shell",
|
"clientMetadata" : {
|
"application" : {
|
"name" : "MongoDB Shell"
|
},
|
"driver" : {
|
"name" : "MongoDB Internal Client",
|
"version" : "0.0.0"
|
},
|
"os" : {
|
"type" : "Darwin",
|
"name" : "Mac OS X",
|
"architecture" : "x86_64",
|
"version" : "18.7.0"
|
}
|
},
|
"active" : true,
|
"currentOpTime" : "2020-04-13T14:25:30.281-04:00",
|
"opid" : 1184,
|
"lsid" : {
|
"id" : UUID("e34da77e-3858-453a-9f07-8dbcace3d8be"),
|
"uid" : BinData(0,"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=")
|
},
|
"secs_running" : NumberLong(152),
|
"microsecs_running" : NumberLong(152000272),
|
"op" : "command",
|
"ns" : "test.t",
|
"command" : {
|
"createIndexes" : "t",
|
"indexes" : [
|
{
|
"key" : {
|
"a" : 1
|
},
|
"name" : "a_1"
|
}
|
],
|
"lsid" : {
|
"id" : UUID("e34da77e-3858-453a-9f07-8dbcace3d8be")
|
},
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1586802160, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"$db" : "test"
|
},
|
"numYields" : 0,
|
"waitingForLatch" : {
|
"timestamp" : ISODate("2020-04-13T18:22:58.420Z"),
|
"captureName" : "FutureResolution"
|
},
|
"locks" : {
|
|
},
|
"waitingForLock" : false,
|
"lockStats" : {
|
"ParallelBatchWriterMode" : {
|
"acquireCount" : {
|
"r" : NumberLong(3)
|
}
|
},
|
"ReplicationStateTransition" : {
|
"acquireCount" : {
|
"w" : NumberLong(5)
|
}
|
},
|
"Global" : {
|
"acquireCount" : {
|
"r" : NumberLong(1),
|
"w" : NumberLong(4)
|
}
|
},
|
"Database" : {
|
"acquireCount" : {
|
"r" : NumberLong(1),
|
"w" : NumberLong(3)
|
}
|
},
|
"Collection" : {
|
"acquireCount" : {
|
"w" : NumberLong(1),
|
"W" : NumberLong(1)
|
}
|
},
|
"Mutex" : {
|
"acquireCount" : {
|
"r" : NumberLong(4)
|
}
|
}
|
},
|
"waitingForFlowControl" : false,
|
"flowControlStats" : {
|
"acquireCount" : NumberLong(3),
|
"timeAcquiringMicros" : NumberLong(8)
|
}
|
}
|
],
|
"ok" : 1,
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1586802327, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"operationTime" : Timestamp(1586802327, 1)
|
}
|
|
secondary:
foo:SECONDARY> db.currentOp({ns: 'test.t'})
|
{
|
"inprog" : [
|
{
|
"type" : "op",
|
"host" : "benetymbp3.fios-router.home:30002",
|
"desc" : "IndexBuildsCoordinatorMongod-0",
|
"active" : true,
|
"currentOpTime" : "2020-04-13T14:26:07.106-04:00",
|
"opid" : 5352,
|
"secs_running" : NumberLong(188),
|
"microsecs_running" : NumberLong(188746613),
|
"op" : "command",
|
"ns" : "test.t",
|
"command" : {
|
"createIndexes" : "t",
|
"indexes" : [
|
{
|
"v" : 2,
|
"key" : {
|
"a" : 1
|
},
|
"name" : "a_1"
|
}
|
]
|
},
|
"msg" : "Index Build: scanning collection Index Build: scanning collection: 1/1 100%",
|
"progress" : {
|
"done" : 1,
|
"total" : 1
|
},
|
"numYields" : 283709,
|
"locks" : {
|
"ReplicationStateTransition" : "w",
|
"Global" : "w",
|
"Database" : "w",
|
"Collection" : "w"
|
},
|
"waitingForLock" : false,
|
"lockStats" : {
|
"ReplicationStateTransition" : {
|
"acquireCount" : {
|
"w" : NumberLong(283711)
|
}
|
},
|
"Global" : {
|
"acquireCount" : {
|
"w" : NumberLong(283711)
|
}
|
},
|
"Database" : {
|
"acquireCount" : {
|
"w" : NumberLong(283711)
|
}
|
},
|
"Collection" : {
|
"acquireCount" : {
|
"w" : NumberLong(283710),
|
"W" : NumberLong(1)
|
}
|
},
|
"Mutex" : {
|
"acquireCount" : {
|
"r" : NumberLong(2)
|
}
|
}
|
},
|
"waitingForFlowControl" : false,
|
"flowControlStats" : {
|
"acquireCount" : NumberLong(283711),
|
"timeAcquiringMicros" : NumberLong(408548)
|
}
|
}
|
],
|
"ok" : 1,
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1586802357, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"operationTime" : Timestamp(1586802357, 1)
|
}
|
|