[SERVER-47877] Some replsets tests use arrayEq without assert Created: 01/May/20  Updated: 29/Oct/23  Resolved: 06/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.8, 4.4.0-rc6, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Participants:

 Description   

The Javascript arrayEq method is a predicate; it returns true or false. Some javascript tests in replsets use it as if it were an assert, where it doesn't do anything.



 Comments   
Comment by Githook User [ 01/Jun/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-47877 Replace uses of arrayEq without assert with assert.sameMembers in replsets tests

(cherry picked from commit ca9bd540c161f33fcfa271449b89afb80917f382)
Branch: v4.2
https://github.com/mongodb/mongo/commit/2350c7e6ec908be7b1062df81bb0525d61024644

Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-47877 Replace uses of arrayEq without assert with assert.sameMembers in replsets tests

(cherry picked from commit ca9bd540c161f33fcfa271449b89afb80917f382)
Branch: v4.4
https://github.com/mongodb/mongo/commit/72432502fba43c6e10e54e94a0d69c751b21ddb7

Comment by Githook User [ 06/May/20 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto'}

Message: SERVER-47877 Replace uses of arrayEq without assert with assert.sameMembers in replsets tests
Branch: master
https://github.com/mongodb/mongo/commit/ca9bd540c161f33fcfa271449b89afb80917f382

Comment by Matthew Russotto [ 01/May/20 ]

It looks like this issue was introduced in 4.2

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