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

Connection close during long query

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.47
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 14.04.1 LTS

      Connection close during long query (more than 1min) with bellow message.
      ```
      MongoError: server <host>:<port> sockets closed]
      name: 'MongoError',
      message: 'server <host>:<port> sockets closed' }
      ```

      this message come from
      ```
      at Socket.<anonymous> (........./node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.148)
      at Socket.g (events.js:180:16)
      at Socket.emit (events.js:95:17)
      at TCP.close (net.js:466:12)
      ```

      It seems like that the connection closed by mongodb simply.
      However, this problem does not met on 1.4 driver and mongoshell with same query.

      There are no server log associating with this problem.

      I can find server operation by currentOp after close connection.

      There is strong reproducibility.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            crumbjp Hiroaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: