[SERVER-72407] Disallow the '$_internalIndexKey' from running against parallel tests Created: 28/Dec/22  Updated: 29/Oct/23  Resolved: 28/Dec/22

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

Type: Bug Priority: Major - P3
Reporter: Rishab Joshi (Inactive) Assignee: Rishab Joshi (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: 165

 Description   

This test parallelTester.js may be run against the sharded bucket namespace which expects the insert document to have a valid time field, which the test index_key_expression.js does not provide. As such, the test index_key_expression.js fails on document insertion when it should not. We should prohibit running index_key_expression.js in parallelTester.js. 



 Comments   
Comment by Githook User [ 28/Dec/22 ]

Author:

{'name': 'Rishab Joshi', 'email': 'rishab.joshi@mongodb.com', 'username': 'rishvin'}

Message: SERVER-72407 Robustify the '$_internalIndexKey' expression for parallel testing.
Branch: master
https://github.com/mongodb/mongo/commit/3d50b4aecea77914435b2ba9b2c83a5d618c3ec3

Comment by Max Hirschhorn [ 28/Dec/22 ]

This test parallelTester.js may be run against the sharded bucket namespace

A couple questions -

  1. If the index_key_expression.js had dropped the collection it uses at the beginning of the test, would this failure have occurred?
  2. If the index_key_expression.js hadn't dynamically chosen its collection name with jsTestName() and instead explicit chosen a test-unique name, would this failure have occurred?

I could imagine these both being significant for the jstests/parallel/basic{,Plus}.js test runners because they cause jsTestName() to resolve to "ParallelTesterThread<N>".

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