CANT find collection .sys.inprog

From: majeed said <majeed.said@xxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Apr 2016 06:16:59 -0700 (PDT)
Why ads?
Hi,

 how can i get using java the collection "$cmd.sys.inprog"

when i run the following :
mongodClient.getDatabase("admin").getCollection("$cmd.sys.inprog").find(new 
Document("op", "command"));

got the following exception:

com.mongodb.MongoQueryException: Query failed with error code 73 and error 
message 'Invalid collection name: admin.$cmd.sys.inprog' on server 
**********.com:27017


why its invalid since i can run successfully the following command with 
results:

mongodClient.getDatabase("admin").runCommand(new Document("currentOp", 
Boolean.TRUE)); 


please advise.

Regards,
Majeeed

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e5bb259e-e9d0-4179-bd8f-b20c32da94c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?