[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: |
|
||||||||||||||||
| 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: |
| 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 " This reverts 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: (cherry picked from commit 01bfdcb8f35f6cf81b9b471be21500c84d5cb660) |
| Comment by Githook User [ 12/Sep/16 ] |
|
Author: {u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}Message: |