[CXX-1414] Change stream support Created: 31/Jul/17  Updated: 28/Oct/23  Resolved: 07/May/18

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.3.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Ryan Timmons
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-398 Change stream support Closed
Duplicate
is duplicated by CXX-1408 Add Change Stream API Closed
is duplicated by CXX-1410 Add tests for Change Streams Closed
Epic Link: Change Streams
Backwards Compatibility: Fully Compatible

 Comments   
Comment by Githook User [ 07/May/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CXX-1414 Update change stream example
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3e27f1304cc03ae799c51ce0bca4072001f3422e

Comment by Githook User [ 04/May/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CXX-1414 Store pointer, not ref, to mongoc_change_stream_t
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/4ce65a37e51874035ebe22c24406bb48d2b204da

Comment by Githook User [ 26/Apr/18 ]

Author:

{'email': 'ryan.timmons@mongodb.com', 'name': 'Ryan Timmons'}

Message: CXX-1414 Change-stream testing and bug-fixes
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/e47e7b819aea5eaf8d6a974773344071d626674c

Comment by Githook User [ 14/Apr/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CXX-1414 Fix gcc 4.8 error

Using a mongoc_change_stream_t reference in a braced initializer yields "invalid initialization of
non-const reference."
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/95188ea2607a3c9d0c351e09dbc08b290d05bb87

Comment by Githook User [ 09/Apr/18 ]

Author:

{'email': 'ryan.timmons@10gen.com', 'name': 'Ryan Timmons', 'username': 'rtimmons'}

Message: CXX-1414 ChangeStreams polish some const-ness etc
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/49cfe1742e632136f1a91a659b4b72bcba9e3fbd

Comment by Githook User [ 09/Apr/18 ]

Author:

{'email': 'ryan.timmons@10gen.com', 'name': 'Ryan Timmons', 'username': 'rtimmons'}

Message: CXX-1414: Add ChangeStreams Support
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/48db930ec922db7de2839b8120be6f9f224440fd

Comment by A. Jesse Jiryu Davis [ 26/Mar/18 ]

Work is proceeding on master, you'll see commits there once they've finished code review. If you watch this ticket you'll get notified as we make progress. Tailable cursors are implemented in the MongoDB server, but they are based on the oplog, so they'll always require replica sets.

Comment by Tim Niemueller [ 26/Mar/18 ]

@jesse, thanks for the update. Is this work happening on the public repo? Checked this morning and didn't see anything. Would like to test early if possible.

So are change streams sugar for a tailable cursor on the oplog that does return the actual documents instead? Are there plans to make them available for non-replica sets, too? Thanks again, Tim.

Comment by A. Jesse Jiryu Davis [ 26/Mar/18 ]

Hi, we're updating and merging to master the code we began in that branch. This effort resumed a week ago and we'll complete it in approximately a month, to be released as part of 3.3.0. You'll still have to set up a replica set, however; MongoDB change streams require a replica set or a sharded cluster of replica sets.

Comment by Tim Niemueller [ 26/Mar/18 ]

What is the current state of this effort? There is a changestreams branch in the repo, but that has not been touched since August. I would like to use this feature (and stop setting up single-node replica sets to watch the oplog). It would be nice if you could comment on the state and progress and the anticipated time frame we are looking at. Thanks!

Generated at Wed Feb 07 22:02:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.