[SERVER-25324] Expose a function in the shell to compare BSON at a byte level Created: 28/Jul/16  Updated: 22/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: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-26041 Use bsonBinaryEqual in checkDBHashesF... Closed
Related
is related to SERVER-23226 Port resmoke.py's CheckReplDBHash hoo... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG 2016-09-19
Participants:

 Description   

bsonWoCompare({a: NumberLong(0)}, {a: NumberInt(0)}); returns 0 in the shell, which prevents us from detecting type mismatches in documents when there's a dbhash mismatch across replica set nodes.

We need to be able to compare bytes instead of just BSON representations to make it easier to debug issues found by the dbhash testing hook.



 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-25324 Expose a function in the shell to compare BSON at a byte level
Branch: v3.2
https://github.com/mongodb/mongo/commit/ebf591b0718cff88680e7bda9abfdb31e1bcbd78

Comment by Githook User [ 12/Sep/16 ]

Author:

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

Message: Revert "SERVER-25324 Expose a function in the shell to compare BSON at a byte level"

This reverts commit 58b888b983ba0b07ff7a6e70710206fbd114a58a.
Branch: v3.2
https://github.com/mongodb/mongo/commit/e348f93f0d484f782e6d859bfcae6a52c0235fe4

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-25324 Expose a function in the shell to compare BSON at a byte level

(cherry picked from commit 01bfdcb8f35f6cf81b9b471be21500c84d5cb660)
Branch: v3.2
https://github.com/mongodb/mongo/commit/58b888b983ba0b07ff7a6e70710206fbd114a58a

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-25324 Expose a function in the shell to compare BSON at a byte level
Branch: master
https://github.com/mongodb/mongo/commit/01bfdcb8f35f6cf81b9b471be21500c84d5cb660

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