[SERVER-47209] change_streams_update_lookup_shard_metadata_missing.js should handle the node the change stream cursor was established on going through rollback Created: 31/Mar/20  Updated: 29/Oct/23  Resolved: 21/May/20

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.0.19, 4.2.8, 4.4.0-rc8, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Bernard Gorman
Resolution: Fixed Votes: 1
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Query 2020-06-01
Participants:
Linked BF Score: 16

 Description   

The test establishes a change stream cursor, which establishes the cursor on all shard primaries. The test then causes a failover on one of the shards, then asserts that it is able to continue using the cursor.

If the old shard primary goes through rollback as part of the failover (which happens nondeterministically since the test turns on the periodic noop writer on shards), all databases on that node will be closed and re-opened, which invalidates the change stream cursor and causes the test to fail when getMore is called on the cursor.



 Comments   
Comment by Githook User [ 28/May/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-47209 Account for rollback in change_streams_update_lookup_shard_metadata_missing.js

(cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269)
Branch: v4.0
https://github.com/mongodb/mongo/commit/3a737b6beefe346060bbfd64b5c97790d4fd86ad

Comment by Githook User [ 28/May/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-47209 Account for rollback in change_streams_update_lookup_shard_metadata_missing.js

(cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269)
Branch: v4.2
https://github.com/mongodb/mongo/commit/c28892ddb597e2875cda52dcf35810b7395c7dc1

Comment by Githook User [ 28/May/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-47209 Account for rollback in change_streams_update_lookup_shard_metadata_missing.js

(cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ddda87df10dda9471a064e0014185c2e635f7383

Comment by Githook User [ 21/May/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-47209 Account for rollback in change_streams_update_lookup_shard_metadata_missing.js
Branch: master
https://github.com/mongodb/mongo/commit/8cb02c375ad128bca9bad7edcc29a8c55fbd9269

Generated at Thu Feb 08 05:13:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.