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

updates that implicitly change type may not replicate correctly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.7, 3.2.0
    • 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

        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: