[SERVER-46937] Aggregation stage serverStatus counters incorrectly count update pipelines Created: 18/Mar/20  Updated: 29/Oct/23  Resolved: 14/Apr/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc2, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Mihai Andrei Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Query 2020-03-23, Query 2020-04-06, Query 2020-04-20
Participants:

 Description   

At present, the counters for pipeline-style updates are increment once per executed update statement , and not once per pipeline as one would expect. Moreover, since some stages like $merge with subpipelines execute update statements, this results in the update stages within said subpipleines being counted multiple times for each update being executed.

A potential solution is to increment the stage counters when an update command is first received in the command layer.



 Comments   
Comment by Githook User [ 15/Apr/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-46937 Aggregation stage serverStatus counters incorrectly count update pipelines

(cherry picked from commit 1740d32001cf77ce0dab6a1b1ec14d4b5be8bfef)
Branch: v4.4
https://github.com/mongodb/mongo/commit/1067844167dec31e3a379ce0b63522e43e029c96

Comment by Githook User [ 14/Apr/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-46937 Aggregation stage serverStatus counters incorrectly count update pipelines
Branch: master
https://github.com/mongodb/mongo/commit/1740d32001cf77ce0dab6a1b1ec14d4b5be8bfef

Generated at Thu Feb 08 05:12:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.