[SERVER-23357] db.serverStatus.metrics.document.inserted is double what it should be Created: 25/Mar/16 Updated: 16/May/16 Resolved: 05/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
It is incremented by two with each insert:
This is not due to the matching inserts to the oplog as this host is a standalone. |
| Comments |
| Comment by David Storch [ 05/May/16 ] |
|
This has been fixed by the write path refactor in |
| Comment by Mathias Stearn [ 08/Apr/16 ] |
|
This is caused by calling recordCurOpMetrics twice on the same CurOp. The other write commands nest their curops, but insert operates directly on the top-level curop. This curop automatically gets its metrics recorded at the end of every op so it should not be called by insert. |
| Comment by J Rassi [ 26/Mar/16 ] |
|
Linking to Moving to query team triage backlog for possible inclusion in the CRUD diagnostics project. |