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

updates that implicitly change type may not replicate correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.0.7, 3.2.0
    • Fix Version/s: None
    • Component/s: Write Ops
    • Labels:
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      // start a replica set
      db.test.insert({a:NumberLong('-9223372036854775808')});
      db.test.update({}, { $inc: { a: 13 } });
      // the number is different on the primary and secondary
      

      Show
      // start a replica set db.test.insert({a:NumberLong( '-9223372036854775808' )}); db.test.update({}, { $inc: { a: 13 } }); // the number is different on the primary and secondary
    • Sprint:
      QuInt E (01/11/16)
    • Linked BF Score:
      0

      Description

      calling $inc on a large number from the shell may cause the number to be different on the primary and secondary.

      Does not seem to occur when doing the repro with the Python driver. The result of the increment is correct.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: