Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-781

wrong operation type used when saving ops with disconnectHandler.add

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.5
    • Affects Version/s: 2.1.4, 2.2.2
    • Component/s: MongoDB 3.2
    • Labels:
    • Environment:
      nodejs

      in mongodb-core:

      when ops jobs are stored using `disconnectHandler.add` wrong opType is specified:

      in /lib/topologies/replset.js, 'insert' is used for 'update' and 'remove'
      in /lib/topologies/mongos.js, 'insert' is used for 'remove'

      this causes wrong operations to be executed when connection is reestablished ( most of the time leading to operation error )

      see pull request with a fix:
      https://github.com/christkv/mongodb-core/pull/121

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            agierakowski@gmail.com Adrian Gierakowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: