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

resmoke.py's dbHash should compare documents with an ordered dictionary

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.2.0-rc3
    • 3.2.0-rc6
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG D (12/11/15)
    • 0

    Description

      Because MongoDB's dbHash command looks at the raw bytes of a BSON document, different ordering of the fields could produce different dbHashes. Resmoke.py currently compares the documents as unordered Python dictionaries.

      max.hirschhorn suggests using pymongo's bson.SON which is an ordered dictionary. This is better than Python's ordered dictionary, which was only introduced in Python 2.7

      Attachments

        Issue Links

          Activity

            People

              michael.grundy Michael Grundy
              robert.guo@mongodb.com Robert Guo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: