[SERVER-39922] Fix lock stats suboperation tests for mobile Created: 01/Mar/19  Updated: 29/Oct/23  Resolved: 04/Mar/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.7, 4.1.9

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: test-fix
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:
v4.0
Sprint: Storage NYC 2019-03-11
Participants:
Linked BF Score: 0

 Description   

This is only a test fix.

lock_stats_suboperation_curop.js and lock_stats_suboperation_logs.js don't work with mobile storage engine because

  1. There is only one level of locking so we can't use currentOp() (which takes a global S lock) to capture an in-progress index build (which takes a global X lock).
  2. The assumption that parent operation and the sub-operation have the same lock waiting time seems to be affected by noise very easily.


 Comments   
Comment by Githook User [ 12/Mar/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-39922 Fix lock stats suboperation tests for mobile

(cherry picked from commit aa45190a746db0a6cfb413d4766e57cf3f25ee30)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a6123ee9c73bb00c9a3ef11878ccbd8b361014f3

Comment by Githook User [ 04/Mar/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-39922 Fix lock stats suboperation tests for mobile
Branch: master
https://github.com/mongodb/mongo/commit/aa45190a746db0a6cfb413d4766e57cf3f25ee30

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