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

updates that implicitly change type may not replicate correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.0.7, 3.2.0
    • None
    • Write Ops
    • ALL
    • 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
    • QuInt E (01/11/16)
    • 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

              charlie.swanson@mongodb.com Charlie Swanson
              robert.guo@mongodb.com Robert Guo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: