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

TypeError in watch cursor processNewChange when connection closed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.9
    • Component/s: Change Streams

      I was getting errors logged on process exit from the collection watching code.

       

      I found that the value of change can be null in processNewChange when the server connection is closed but the call to cacheResumeToken did not allow for that.

       

      I provided a fix here: https://github.com/mongodb/node-mongodb-native/pull/2416

       

      This issue is just here so that the problem is also tracked in JIRA.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            dobesv@gmail.com Dobes Vandermeer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: