Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25324

Expose a function in the shell to compare BSON at a byte level

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      TIG 2016-09-19

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.abrahams Jonathan Abrahams
              Reporter:
              kamran.khan Kamran K.
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: