[SERVER-74467] Replace assert with assert.soon for checking currentOp Created: 28/Feb/23  Updated: 29/Oct/23  Resolved: 01/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2023-03-06
Participants:
Linked BF Score: 141

 Description   

The test write_concern_operation_metrics.js has a portion where we check currentOp for a specific field. On slow machines this can be an issue if the currentOp query is made before the op is processed by the server. Replace the assert with assert.soon



 Comments   
Comment by Githook User [ 01/Mar/23 ]

Author:

{'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}

Message: SERVER-74467: Replace assert with assert.soon when checking currentOp
Branch: master
https://github.com/mongodb/mongo/commit/1371b23253603786bf1a7814055c1f63483cb9a6

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