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

CheckReplDBHash testing hook should check document type (resmoke.py)

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      TIG E (01/08/16), TIG F (01/29/16)
    • Linked BF Score:
      0

      Description

      Instead of doing

      primary_doc == secondary_doc #hooks.py
      

      to compare 2 documents, we should check that each field is of the same type. We could miss things like:

      >>> -9.223372036854776e+18 == -9223372036854775808
      True
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: