-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.3
-
Component/s: Command Operations
-
None
-
Environment:Ubuntu 14.04
I have run db.currentOp(true) on MongoShell (2.6.9) this gives more information about multiple client a, multiple connectionId and operation id
Output of db.currentOp(true) on MongoShell (2.6.9)
{
"inprog" : [
{
"opid" : 0,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"desc" : "signalProcessingThread",
"threadId" : "0x7f41b3245700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 1,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"desc" : "DataFileSync",
"threadId" : "0x7f41b2a44700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 10,
"active" : false,
"op" : "insert",
"ns" : "local.startup_log",
"insert" : {
},
"client" : "0.0.0.0:0",
"desc" : "initandlisten",
"threadId" : "0x7f41b4b37b80",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" :
,
"timeAcquiringMicros" :
}
},
{
"opid" : 3,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"desc" : "journal",
"threadId" : "0x7f41b1a42700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" :
,
"timeAcquiringMicros" :
}
},
{
"opid" : 5,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"desc" : "clientcursormon",
"threadId" : "0x7f41b1241700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" :
,
"timeAcquiringMicros" :
}
},
{
"opid" : 3790,
"active" : false,
"op" : "query",
"ns" : "local.system.indexes",
"query" : {
"expireAfterSeconds" :
},
"client" : "0.0.0.0:0",
"desc" : "TTLMonitor",
"threadId" : "0x7f41b023f700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" :
,
"timeAcquiringMicros" :
}
},
{
"opid" : 105,
"active" : false,
"op" : "query",
"ns" : "",
"query" :
,
"client" : "127.0.0.1:48910",
"desc" : "conn1",
"threadId" : "0x7f41b4b34700",
"connectionId" : 1,
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 8,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"desc" : "RangeDeleter",
"threadId" : "0x7f41afa3e700",
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 1399,
"active" : false,
"op" : "query",
"ns" : "admin",
"query" :
,
"client" : "127.0.0.1:48924",
"desc" : "conn10",
"threadId" : "0x7f41a8a3c700",
"connectionId" : 10,
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" :
,
"timeAcquiringMicros" :
}
},
{
"opid" : 3796,
"active" : false,
"op" : "query",
"ns" : "",
"query" :
,
"client" : "127.0.0.1:48923",
"desc" : "conn9",
"threadId" : "0x7f41a893b700",
"connectionId" : 9,
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 3175,
"active" : false,
"op" : "query",
"ns" : "",
"query" :
,
"client" : "127.0.0.1:48926",
"desc" : "conn12",
"threadId" : "0x7f41a8739700",
"connectionId" : 12,
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
},
{
"opid" : 3795,
"active" : false,
"op" : "query",
"ns" : "",
"query" :
,
"client" : "127.0.0.1:48925",
"desc" : "conn11",
"threadId" : "0x7f41a8638700",
"connectionId" : 11,
"waitingForLock" : false,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
},
"timeAcquiringMicros" : {
}
}
}
]
}
when we run same command in Mongo Shell(3.0.5) this gives only single client , single Operation Id and multiple connection Id.
Output of db.currentOp(true) on MongoShell(3.x)
{
"inprog" : [
,
,
,
,
,
,
,
,
,
,
{
"desc" : "clientcursormon",
"threadId" : "0x2deeea0",
"opid" : 8,
"active" : false,
"op" : "none",
"ns" : "local.Orders",
"query" : {
},
"numYields" : 0,
"locks" : {
},
"waitingForLock" : false,
"lockStats" : {
"Global" : {
"acquireCount" :
},
"MMAPV1Journal" : {
"acquireCount" :
},
"Database" : {
"acquireCount" :
},
"Collection" : {
"acquireCount" :
}
}
},
{
"desc" : "RangeDeleter",
"threadId" : "0x2deeb60",
"opid" : 6,
"active" : false,
"op" : "none",
"ns" : "",
"query" : {
},
"numYields" : 0,
"locks" : {
},
"waitingForLock" : false,
"lockStats" : {
}
},
,
,
{
"desc" : "conn1",
"threadId" : "0x2def1e0",
"connectionId" : 1,
"opid" : 83,
"active" : false,
"op" : "query",
"ns" : "",
"query" :
,
"client" : "127.0.0.1:40793",
"numYields" : 0,
"locks" : {
},
"waitingForLock" : false,
"lockStats" : {
}
},
]
}
- duplicates
-
JAVA-1952 Different result comes after changing version of mongodb
- Closed