[SERVER-44586] add metrics to serverStatus to track type of update command Created: 12/Nov/19  Updated: 29/Oct/23  Resolved: 21/Jul/20

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 4.7.0, 4.4.2, 4.2.11

Type: Improvement Priority: Major - P3
Reporter: Asya Kamsky Assignee: Mindaugas Malinauskas
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-13778 Investigate changes in SERVER-44586: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Sprint: Query 2020-07-13, Query 2020-07-27
Participants:

 Description   

Currently serverStatus command includes number of update commands run, and number of documents updated. It would be great to have separately the number of update commands that used pipeline (as opposed to document) syntax to specify update transformation.



 Comments   
Comment by Githook User [ 13/Oct/20 ]

Author:

{'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}

Message: SERVER-44586 add metrics to serverStatus to track type of update command

(cherry picked from commit d54afba70a6f028dd68878c03228091bea476176)
(cherry picked from commit 6769d311805862cd7271934dc3f5be1ce974a9a1)
Branch: v4.2
https://github.com/mongodb/mongo/commit/392e8c8ffbe242805bf5a82437d0ae39d1fc6a8a

Comment by Githook User [ 11/Sep/20 ]

Author:

{'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}

Message: SERVER-44586 add metrics to serverStatus to track type of update command

(cherry picked from commit d54afba70a6f028dd68878c03228091bea476176)
Branch: v4.4
https://github.com/mongodb/mongo/commit/6769d311805862cd7271934dc3f5be1ce974a9a1

Comment by David Storch [ 21/Jul/20 ]

Requesting backport to 4.4. It would be nice to gather this information as users start to adopt 4.4.

Comment by Githook User [ 21/Jul/20 ]

Author:

{'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}

Message: SERVER-44586 add metrics to serverStatus to track type of update command
Branch: master
https://github.com/mongodb/mongo/commit/d54afba70a6f028dd68878c03228091bea476176

Comment by Bruce Lucas (Inactive) [ 15/Jul/20 ]

Thanks, that makes sense.

Comment by Asya Kamsky [ 15/Jul/20 ]

bruce.lucas the idea is that total would be unchanged so total already includes them. single failed covers all so the answer to both of your questions is "yes".

Comment by Bruce Lucas (Inactive) [ 15/Jul/20 ]

mindaugas.malinauskas, I have some questions about the proposed design -

  • Does total include pipeline and arrayFilters? So ordinary updates would be total - pipeline - arrayFilters?
  • Does the single failed counter include failed instances of all types?
Generated at Thu Feb 08 05:06:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.