[SERVER-70604] decrease fork-exec window in jstest shell Created: 17/Oct/22  Updated: 29/Oct/23  Resolved: 11/Nov/22

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

Type: Improvement Priority: Major - P3
Reporter: Daniel Moody Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-61860 Death Test should exec after fork Closed
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 25

 Description   

The are several coverage tickets that run into a tcmalloc locking race condition. Most likely this is from the fork exec window here.

More details can found in SERVER-61860 which ran into the same issue (same stack trace) in the unittests.

It's theorized the normal the jstest shell doesn't hit this case because the lock window is pretty small already, but with clang coverage the code execution is slower because the extra overhead from generated coverage calls. More details in this comment.



 Comments   
Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-70604 Don't use tcmalloc for gcov variants
Branch: master
https://github.com/mongodb/mongo/commit/fded14a00f20ca0ec899a4a67cf64dc3a15a83e6

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