[SERVER-57165] Ensure currentOp_shell.js tests target the correct operation Created: 24/May/21  Updated: 29/Oct/23  Resolved: 03/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Katherine Wu (Inactive) Assignee: Katherine Wu (Inactive)
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:
v5.0
Participants:
Linked BF Score: 45

 Description   

The 'currentOp_shell.js' test uses 'assert.soon' to make sure that the operation to be targeted has actually started. However in certain environments like sharded passthroughs the 'assert.soon' can return too early after finding a different operation. We should change the function passed into 'assert.soon' to return true only when it finds the specific operation we expect.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 17/Jun/21 ]

Author:

{'name': 'Katherine Wu', 'email': 'katherine.wu@mongodb.com', 'username': 'kaywux'}

Message: SERVER-57165 Ensure currentOp_shell.js tests target the correct operation

(cherry picked from commit 124fdbe60bcda1590832a72687af8204f2673183)
Branch: v5.0
https://github.com/mongodb/mongo/commit/41ddb7524a860cce66131901094ee6d4685a3dc3

Comment by Githook User [ 03/Jun/21 ]

Author:

{'name': 'Katherine Wu', 'email': 'katherine.wu@mongodb.com', 'username': 'kaywux'}

Message: SERVER-57165 Ensure currentOp_shell.js tests target the correct operation
Branch: master
https://github.com/mongodb/mongo/commit/ab9a80b8fd478ff88d001785d21253d1981ae6a5

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