[SERVER-37931] lock_stats_suboperation_logs.js should ignore noise lock stats Created: 05/Nov/18  Updated: 29/Oct/23  Resolved: 06/Nov/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.6.10, 4.0.5, 4.1.5

Type: Task 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
Backport Requested:
v4.0, v3.6
Sprint: Storage NYC 2018-11-19
Participants:
Linked BF Score: 18

 Description   

This is a test-fix only ticket. The issue only happens to MMAPV1 on v3.6 and v4.0.

lock_stats_suboperation_logs.js scans every line from the logs and captures any lock waiting stats. The assumption is that only two lines will be captured: they are the logs for the sub-command and the parent command. Also, their lock waiting time should be the same.
However, the assumption does not always hold: the logs being scanned include logs from validation hooks and MMAPV1 JournalFlushLock are taken during this stage. It's possible that there are some wait for this lock so the test failed due to these noise lock stats.



 Comments   
Comment by Githook User [ 19/Nov/18 ]

Author:

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

Message: SERVER-37931 lock_stats_suboperation_logs.js should ignore noise lock stats

(cherry picked from commit d32a6a7ae38dffbdd4a2e4f5fe733831f07d93e8)
Branch: v3.6
https://github.com/mongodb/mongo/commit/9f117143be34ad7fc16ff7bbf259d95133ad2943

Comment by Githook User [ 10/Nov/18 ]

Author:

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

Message: SERVER-37931 lock_stats_suboperation_logs.js should ignore noise lock stats

(cherry picked from commit d32a6a7ae38dffbdd4a2e4f5fe733831f07d93e8)
Branch: v4.0
https://github.com/mongodb/mongo/commit/60eb53e0459b38e20527c219a57fcf0304633a8e

Comment by Githook User [ 06/Nov/18 ]

Author:

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

Message: SERVER-37931 lock_stats_suboperation_logs.js should ignore noise lock stats
Branch: master
https://github.com/mongodb/mongo/commit/d32a6a7ae38dffbdd4a2e4f5fe733831f07d93e8

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