[SERVER-61532] Opcounters to detect constraint violations need to be exposed. Created: 16/Nov/21  Updated: 29/Oct/23  Resolved: 18/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.6, 5.1.1

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Judah Schvimer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-21700 Do not relax constraints during stead... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Replication 2021-11-29
Participants:

 Description   

We created opCounters to detect constraint violations during steady state replication, but they are not exported by the OpCounter getObj() class. They need to be exported.

https://github.com/10gen/mongo/blob/79c05e5b6c93e32d26dc9baf927ab58bc198d012/src/mongo/db/stats/counters.cpp#L68



 Comments   
Comment by Githook User [ 08/Dec/21 ]

Author:

{'name': 'Judah Schvimer', 'email': 'judah@mongodb.com', 'username': 'judahschvimer'}

Message: SERVER-61532 Expose opcounters to detect constraint violations

(cherry picked from commit 5f8a8c70d017bb424748a49ca31df01b2309e000)
Branch: v5.0
https://github.com/mongodb/mongo/commit/7ba62a29745f518e2a7b37c75b7a067813e0bcac

Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Judah Schvimer', 'email': 'judah@mongodb.com', 'username': 'judahschvimer'}

Message: SERVER-61532 Expose opcounters to detect constraint violations

(cherry picked from commit 5f8a8c70d017bb424748a49ca31df01b2309e000)
Branch: v5.1
https://github.com/mongodb/mongo/commit/3f88eb48b80bbd3babe6431f030a128c3ff824d2

Comment by Githook User [ 18/Nov/21 ]

Author:

{'name': 'Judah Schvimer', 'email': 'judah@mongodb.com', 'username': 'judahschvimer'}

Message: SERVER-61532 Expose opcounters to detect constraint violations
Branch: master
https://github.com/mongodb/mongo/commit/5f8a8c70d017bb424748a49ca31df01b2309e000

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