db.currentOp() returns op:"none" and empty query,ns

257 views
Skip to first unread message

Jerwin Roy

unread,
Jul 3, 2015, 12:51:47 AM7/3/15
to mongod...@googlegroups.com
Hi guys,

When i run db.currentOp(true) i am getting the below output with op:none,empty ns & query.Can anyone provide me the solution?

{
    "opid" : 2741774,
    "active" : true,
    "secs_running" : 65690,
    "microsecs_running" : NumberLong("65690930015"),
    "op" : "none",
    "ns" : "",
    "query" : {
       
    },
    "desc" : "repl writer worker 1",
    "threadId" : "0x7ff4a5cd3700",
    "waitingForLock" : false,
    "numYields" : 0,
    "lockStats" : {
        "timeLockedMicros" : {
            "r" : NumberLong(0),
            "w" : NumberLong(103)
        },
        "timeAcquiringMicros" : {
           
        }
    }
}

Stephen Steneker

unread,
Jul 20, 2015, 10:10:47 PM7/20/15
to mongod...@googlegroups.com, meetj...@gmail.com
Hi Jerwin,

The output of db.currentOp(true) includes system operations and idle connections, so it is expected that you will find some threads that aren't associated with a specific namespace or query. The information on system operations and internal threads generally isn't meant for end users to interpret or action (eg. definitely don't kill unknown system operations!).

The description of the operation you have noted is "repl writer worker" thread, so this output is presumably from a replica set member which will have multiple worker threads present:
    "desc" : "repl writer worker 1",
Regards,
Stephen 

Jerwin Roy

unread,
Jul 20, 2015, 11:50:03 PM7/20/15
to mongod...@googlegroups.com
Thanks Stephen :)

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/hZO6kwWpBvI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/fa8bd6ab-24e9-4b9f-a49f-9976609f9847%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages