[SERVER-64362] Add resume after invalidate regression test for per shard cursors Created: 09/Mar/22  Updated: 27/Oct/23  Resolved: 25/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Mickey Winters Assignee: Mickey Winters
Resolution: Works as Designed Votes: 0
Labels: pm-2419-commit
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Sprint: QE 2022-03-21
Participants:
Linked BF Score: 79

 Description   

I found a bug but adding a remote.invalidated check fixed it. perhaps we could be add a regression test to jstests/change_streams/report_post_batch_resume_token.js or jstests/change_streams/resume_after_invalidate_exception.js but the latter has some slightly different setup.
this test case needs to:

  • watch a collection
  • immediate save a pbrt
  • drop the collection to invalidate
  • watch the collection again starting after the pbrt we saved and filtering out all events
  • then make sure the initial response and subsequent getMores have the pbrt

The point of this convoluted setup is to make sure that even when there are no events and an invalidation happens that the pbrt still gets set.



 Comments   
Comment by Mickey Winters [ 25/Mar/22 ]

we already had test cases that cover this that I didn't know about

Comment by Githook User [ 24/Mar/22 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: Revert "SERVER-64362 Add resume before invalidate regression test for per shard cursors"

This reverts commit 853ae19875607294030344ec9155ae8cd8b1bf00.
Branch: master
https://github.com/mongodb/mongo/commit/b758b91662fa804a0d8451b4e9c38af7c33c21a9

Comment by Githook User [ 17/Mar/22 ]

Author:

{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}

Message: SERVER-64362 Add resume before invalidate regression test for per shard cursors
Branch: master
https://github.com/mongodb/mongo/commit/853ae19875607294030344ec9155ae8cd8b1bf00

Generated at Thu Feb 08 06:00:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.