[SERVER-62488] validate_datasize.js errors when TestData is undefined Created: 10/Jan/22  Updated: 29/Oct/23  Resolved: 11/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Davis Haupt (Inactive)
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
Participants:
Linked BF Score: 177

 Description   

See the comments on the linked BF for more details, but the summary is that `jsTestName()` returns _unknown_name_ when TestData is not set, and in the SELinux evergreen tasks (which do not set TestData), db['__unknown_name__'] is undefined. It seems that tests in jscore don't actually use `jsTestName()` to set the collection they use, but instead will manually namespace a collection that's similar to the name of a test file. This ticket should update validate_datasize.js to behave similarly.

 

Relevant line: https://github.com/10gen/mongo/blob/9b60d431ed30814490c625c451b5c0e66a28d928/jstests/core/datasize_validation.js?plain=1#L10



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

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-62488 explicitly set collection in validate_datasize.js
Branch: master
https://github.com/mongodb/mongo/commit/4f0b5118a61593927dc5398b8eacf37884c84c88

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