[SERVER-46451] index_build.js fails with "SyntaxError: redeclaration of let IndexBuildTest" error in parallel test suite Created: 27/Feb/20  Updated: 29/Oct/23  Resolved: 28/Feb/20

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

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
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
Sprint: Execution Team 2020-03-09
Participants:
Linked BF Score: 25

 Description   

A couple tests in jstests/core/ were modified to import the jstests/noPassthrough/libs/build_index.js, a JS test helper for index builds. However, tests in jstests/core/ are also run concurrently in the parallel test suite and the modified tests have been failing in the parallel test suite with the following error:

SyntaxError: redeclaration of let IndexBuildTest :
@jstests/noPassthrough/libs/index_build.js:1:1
@jstests/core/apply_ops_index_collation.js:20:1
@jstests/core/apply_ops_index_collation.js:15:2
time<@eval:11:17



 Comments   
Comment by Githook User [ 28/Feb/20 ]

Author:

{'username': 'benety', 'name': 'Benety Goh', 'email': 'benety@mongodb.com'}

Message: SERVER-46451 re-enable apply_ops_index_collation.js and apply_ops_invalid_index_spec.js in parallel suite
Branch: master
https://github.com/mongodb/mongo/commit/d656e185f2ca18f3963581c5bd0279ca69c256f9

Comment by Githook User [ 28/Feb/20 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-46451 fix index_build.js to work with the parallel test suite
Branch: master
https://github.com/mongodb/mongo/commit/56af88a49d0a74e9359abd9d80e8e1990fe18279

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