[SERVER-71392] Track usage of JSON Schema for validation Created: 15/Nov/22  Updated: 29/Oct/23  Resolved: 02/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0, 6.0.5, 4.4.20, 5.0.16

Type: Task Priority: Major - P3
Reporter: Katya Kamenieva Assignee: Gil Alon
Resolution: Fixed Votes: 1
Labels: metrics
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by COMPASS-6482 Investigate changes in SERVER-71392: ... Closed
Documented
is documented by DOCS-15862 [SERVER] Investigate changes in SERVE... Backlog
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0, v4.4
Sprint: QE 2023-02-06
Participants:

 Description   

Add additional counters in serverStatus().metrics.commands for collMod and create.

Something like:

{
create: { 
failed: Long("0"), 
validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
total: Long("23"
},
collMod: { 
failed: Long("0"), 
validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, 
total: Long("0"
}
...
}

Increment count for 'validator.total' if non-empty 'validator' object was passed as option to the command. Increment 'validator.jsonSchema' if $jsonSchema was used anywhere within 'validator' object. 



 Comments   
Comment by Githook User [ 22/Feb/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-71392 Add counters to track jsonSchema usage in create and collMod
Branch: v4.4
https://github.com/mongodb/mongo/commit/2edb32d4516e89807d19c94bb2f57762839edbe4

Comment by Githook User [ 17/Feb/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-71392 Add counters to track jsonSchema usage in create and collMod
Branch: v6.0
https://github.com/mongodb/mongo/commit/a0adc8d5bad1b20d45802da6a0fc1c28d3b2c15b

Comment by Githook User [ 17/Feb/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-71392 Add counters to track jsonSchema usage in create and collMod
Branch: v5.0
https://github.com/mongodb/mongo/commit/baa59b60c3a15cc89b0f3b500953e64f2ed4acb9

Comment by Githook User [ 02/Feb/23 ]

Author:

{'name': 'Gil Alon', 'email': 'gil.alon@mongodb.com', 'username': 'galon1'}

Message: SERVER-71392 Add counters to track jsonSchema usage in create and collMod
Branch: master
https://github.com/mongodb/mongo/commit/0799b82922eb146489074ef78da93b21fa1ccc3b

Generated at Thu Feb 08 06:18:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.