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

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

    • Fully Compatible
    • ALL
    • TIG D (12/11/15)
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None