I want to kill some inactive operations, operation information like this
{
"opid" : 231889001,
"active" : false,
"op" : "query",
"query" : {
"_id" : {
"$in" : [
"abc",
"efg",
]
}
},
"desc" : "conn560",
"threadId" : "0x7f83d5138700",
"connectionId" : 560,
"waitingForLock" : false,
"killPending" : true,
"numYields" : 0,
"lockStats" : {
"timeLockedMicros" : {
"r" : NumberLong(365),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(2),
"w" : NumberLong(0)
}
}
}
and I use this command to kill this operation
> db.killOp(231889001)
{ "info" : "attempting to kill op" }
It seem not take any effect, this operation is still here.
and I also check the read/write queue and currentOp(), did not find any command in queue and currentOp() is empty.
"globalLock": {
"lockTime": 130560173,
"currentQueue": {
"total": 0,
"writers": 0,
"readers": 0
},
"activeClients": {
"total": 0,
"writers": 0,
"readers": 0
},
"totalTime": 282024131000
},
> db.currentOp()
{ "inprog" : [ ] }
Question is:
1. if I want to kill these operations, what can I do? except restart MongoDB server.
2. Why there are so may operations are inactive? what has caused this problem?
Thanks.