[DOCS-11901] Docs for SERVER-34789: Using resume token from an 'invalidate' notification with 'resumeAfter' should error Created: 23/Jul/18  Updated: 29/Oct/23  Resolved: 18/Sep/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.1, 4.1.1

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-34789 Using resume token from an 'invalidat... Closed
Participants:
Days since reply: 5 years, 21 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

----------------------------

Original Description

Description:

Not certain if this is needed, but deferring to Docs team for it.

Engineering Ticket Description:

After renaming a collection being watched, or renaming another collection to a collection being watched, it's possible to resume the change stream.

 

This should probably produce an error instead.

 

Also, note that we have tests which exercise this behavior, but don't assert that an error is thrown. These tests should be modified.

jstests/change_streams/change_stream_rename_resumability.js
jstests/change_streams/change_stream_rename_target.js 

 
Edit (6/18):

The desired behavior is to return an "invalidate" notification if resuming a change stream with a resume token from a command that would normally invalidate the stream. For example, resuming from the token of a collection drop notification on a single-collection change stream should return an "invalidate" then subsequently close the cursor. Resuming from the token of the invalidate notification itself should throw an error.

----------------------------

Description

Scope of changes (files that need work and how much)

Since we currently already tell our users:
You cannot resume a change stream after an invalidate event (for example, a collection drop or rename) closes the stream.

Will use to update the drop/dropCollection/renameCollection (+shell helpers) that they create invalidate events for change streams.

Impact to other docs outside of this product

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11901: add blurbs to invalidate operations pages
Branch: master
https://github.com/mongodb/docs/commit/3e474c3bd0ae16d69ba205d7171cb2c848d18a94

Generated at Thu Feb 08 08:03:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.