[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: |
|
||||||||||||
| 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: (cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269) |
| Comment by Githook User [ 28/May/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: (cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269) |
| Comment by Githook User [ 28/May/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: (cherry picked from commit 8cb02c375ad128bca9bad7edcc29a8c55fbd9269) |
| Comment by Githook User [ 21/May/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: |