[SERVER-26041] Use bsonBinaryEqual in checkDBHashesForReplSet Created: 09/Sep/16  Updated: 21/Nov/16  Resolved: 12/Sep/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.10, 3.3.14

Type: Improvement Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-25324 Expose a function in the shell to com... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG 2016-09-19
Participants:

 Description   

The checkDBHashesForReplSet (in src/mongo/shell/replsettest.js) currently uses bsonWoCompare, which doesn't fail if there are type differences, like NumberLong and NumberInt. The new function bsonBinaryEqual should be used instead.



 Comments   
Comment by Githook User [ 12/Sep/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-26041 Use bsonBinaryEqual in checkDBHashes
Branch: v3.2
https://github.com/mongodb/mongo/commit/3f55805234bd7a2db6440c9e7799bbddbd816557

Comment by Githook User [ 12/Sep/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-26041 Use bsonBinaryEqual in checkDBHashesForReplSet
Branch: master
https://github.com/mongodb/mongo/commit/f6dfec308583fcffdd8b9504c647504794282ff7

Generated at Thu Feb 08 04:10:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.