[SERVER-34710] Add test for resuming a change stream after an "invalidate" from a dropCollection Created: 26/Apr/18  Updated: 06/Dec/22  Resolved: 31/May/18

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Backlog - Query Team (Inactive)
Resolution: Duplicate Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-32088 ChangeStream resumeAfter does not wor... Closed
Assigned Teams:
Query
Backport Requested:
v4.0
Participants:

 Description   

Trying to resume a changeStream without a specific collation on a collection that has been dropped will currently trigger an error since there is the UUID provided by the resumeToken will not be in the server's catalog, and so the server won't know which collation to use.

This code is being changed in SERVER-32088. Once that is resolved, we should test this behavior.



 Comments   
Comment by Nicholas Zolnierz [ 31/May/18 ]

Closing as a dup of SERVER-34789, as that ticket will also add the tests that this one describes.

Comment by Charlie Swanson [ 31/May/18 ]

Yep, closing this as a duplicate of the other sounds good to me!

Comment by Ian Boros [ 31/May/18 ]

Oh...Looks like I filed this before we agreed that resuming from an 'invalidate' should produce an error. Now that we've agreed on that behavior this ticket indeed seems like a duplicate. Closing sounds good to me.

Comment by Nicholas Zolnierz [ 31/May/18 ]

charlie.swanson ian.boros I'm in favor of closing this as a dup of SERVER-34789, which presumably will involve writing tests for this behavior. I also think we should remove the "from a dropCollection" in the title and cover all types of invalidates/metadata ops. Thoughts?

Comment by Charlie Swanson [ 18/May/18 ]

Bumping this to the next sprint in favor of SERVER-33553

Comment by Spencer Brody (Inactive) [ 27/Apr/18 ]

It should never be possible to resume a changeStream after an invalidate.

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