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

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: