[SERVER-25903] All internal ops are listed as coming from "MongoDB Shell" Created: 31/Aug/16 Updated: 19/Nov/16 Resolved: 01/Sep/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 3.3.12 |
| Fix Version/s: | 3.3.14 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Platforms 2016-09-19 | ||||||||
| Participants: | |||||||||
| Description |
|
If you run currentOp (the inprog command) and give it the flag to list all ops, even ones that are not "active", you will see that all internal operations have an appName of "MongoDB Shell". Here is an example: |
| Comments |
| Comment by Spencer Brody (Inactive) [ 01/Sep/16 ] | |
|
Okay, I opened a separate issue, | |
| Comment by Spencer Brody (Inactive) [ 01/Sep/16 ] | |
|
Okay I see, I didn't realize that it's expected that operations run on a mongod by a mongos will share the app name with the mongos operation that initiated the mongod op. In that case, now I'm confused about the _configsvrAddShard log message that doesn't include the shell as the app name. Seems like they all should. | |
| Comment by Mark Benvenuto [ 01/Sep/16 ] | |
|
That is a user initiated {{_configsvrAddShard }} which was executed by the shell. The app name associated flows through mongos to mongod. | |
| Comment by Spencer Brody (Inactive) [ 01/Sep/16 ] | |
|
Doesn't look like that fixed the issue with logging, at least not in all cases: https://logkeeper.mongodb.org/build/1db4ebc2bf70791b3654fbc8a33e3f57/test/57c88204be07c435af014246#L4498
_configsvrAddShard always comes from a mongos, so it should never be printed with the shell as the app name. Interestingly, earlier in that same run there's a log message of _configsvrAddShard that doesn't include the shell as the app name: https://logkeeper.mongodb.org/build/1db4ebc2bf70791b3654fbc8a33e3f57/test/57c88204be07c435af014246#L3772. | |
| Comment by Githook User [ 01/Sep/16 ] | |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |
| Comment by Eric Milkie [ 31/Aug/16 ] | |
|
Indeed, it looks like both the use of the internal C++ client to make network connections between internal nodes, and the use of Client/CurOp pairs with no associated network connection are both affected in the same way. | |
| Comment by Spencer Brody (Inactive) [ 31/Aug/16 ] | |
|
Also affects log messages:
|