[SERVER-31354] Support driver API for changeStreams in the shell Created: 02/Oct/17  Updated: 30/Oct/23  Resolved: 17/Nov/17

Status: Closed
Project: Core Server
Component/s: Querying, Replication, Shell
Affects Version/s: None
Fix Version/s: 3.6.0-rc5, 3.7.1

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Siyuan Zhou
Resolution: Fixed Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on NODE-1151 Support driver API for changeStreams ... Closed
Documented
is documented by DOCS-11040 Docs for SERVER-31354: Support driver... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Repl 2017-11-13, Repl 2017-12-04
Participants:

 Comments   
Comment by Siyuan Zhou [ 20/Nov/17 ]

ravind.kumar, yes. It follows the Driver Spec except the shell helper doesn't retry for resumable errors automatically.

Comment by Ravind Kumar (Inactive) [ 20/Nov/17 ]

siyuan.zhou does this mostly cover the structure of the shell collection.watch()?

 
collection.watch( 
    [<array of supported aggregation pipeline stages>], 
   { 
      resumeAfter : <resumeToken>, 
      fullDocument: "updateLookup",
      batchSize : <int>, // I'm assuming this is how many change events the cursor returns at once? What is the default?
      maxAwaitTimeMS : <int> // I'm assuming this is how long the watch() cursor can remain idle between events?,
     collation : <Collation document> // I'm assuming this matches cursor.collation in requirements and only applies to values returned in ``fullDocument``, ``documentKey``, or ``updateDescription``
   }
)

Are there any other cursor options supported here?

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}

Message: SERVER-31354 Support driver API for changeStreams in the shell.

(cherry picked from commit 4edcb8195a1ad4ffa20b9840c323913894376cdb)
Branch: v3.6
https://github.com/mongodb/mongo/commit/e608b8b3490ac7a1bbb717411d6499c2d45b21f6

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}

Message: SERVER-31354 Support driver API for changeStreams in the shell.
Branch: master
https://github.com/mongodb/mongo/commit/4edcb8195a1ad4ffa20b9840c323913894376cdb

Generated at Thu Feb 08 04:26:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.