insertMany() changes not getting to change stream

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.0.2
    • Component/s: Native
    • Environment:
      Xubuntu 16.04, MongoDB 3.6.2, Node.js 8.9.4, MongoDB Node driver 3.0.2, mongodb-topology-manager 2.0.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The attached `changestream.js` script will not print out any 'change' events unless you uncomment out the `.find()` call on line 33. What gives? Below is the output with the find call commented out:

      $ time node changestream.js 
      2018-02-09T18:15:04.881Z 'start'
      2018-02-09T18:15:18.857Z 'Replica set started...'
      2018-02-09T18:15:18.902Z 'Inserting doc'
      2018-02-09T18:15:18.929Z 'Inserted doc'
      ^C
      real	0m44.850s
      user	0m0.662s
      sys	0m0.100s
      
      $ 
      

            Assignee:
            Daniel Aprahamian (Inactive)
            Reporter:
            Valeri Karpov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: