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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc3
    • Fix Version/s: 3.2.0-rc6
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG D (12/11/15)
    • Linked BF Score:
      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

              Assignee:
              michael.grundy Michael Grundy
              Reporter:
              robert.guo Robert Guo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: