[SERVER-26949] Waiting connections of current Created: 08/Nov/16 Updated: 01/Feb/18 Resolved: 14/Nov/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Timur Sultanaev | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Have I understand correctly that according to https://docs.mongodb.com/v3.2/reference/method/db.currentOp/ and In another words next table misses one of the value:
|
| Comments |
| Comment by Timur Sultanaev [ 21/Nov/16 ] | |||||||||||||||||||||||||||||||||||||||||
|
Hi Spencer Jackson, what you've said
sounds very good and obviously is true, I've just checked it. I didn't tried it at first because current documentation Now I see that it means "only the "$all":true and, optionally, $ownOps applies." Thanks! | |||||||||||||||||||||||||||||||||||||||||
| Comment by Spencer Jackson [ 14/Nov/16 ] | |||||||||||||||||||||||||||||||||||||||||
|
Hi strowk, you are correct that when using $ownOps, you are unable to see the connections and operations of any user other than yourself. However, you are able to stack $all and $ownOps together, to display all of the operations and idle connections which have been executed or opened by your currently logged in user:
For example, if I open two shells to my local mongod, authenticate with a user which only has the readWrite@local role in both shells, and run the above command, I get the following output:
The idle authenticated connection is displayed in the output. I will close this ticket as Works as Designed. If you disagree, or have further issues with this feature, please feel free to reopen! |