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

updates that implicitly change type may not replicate correctly

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.7, 3.2.0
    • Component/s: 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

      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.

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

              Created:
              Updated:
              Resolved: