[SERVER-77934] More robust test coverage for pre-image truncates with failovers Created: 08/Jun/23  Updated: 29/Oct/23  Resolved: 18/Jul/23

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

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
is related to SERVER-81485 More robust test coverage for change ... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution EMEA Team 2023-06-26, Execution EMEA Team 2023-07-10, Execution EMEA Team 2023-07-24
Participants:
Linked BF Score: 172

 Description   

While there are several change_stream passthrough suites (example), a change streams suite combined with coverage for stepdown/terminate_primary/kill_primary could give valuable test coverage and increase confidence that pre-image truncates are robust against different types of failovers. 



 Comments   
Comment by Githook User [ 18/Jul/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-77934 Add tests to cover truncate rollback for pre-image removal
Branch: master
https://github.com/mongodb/mongo/commit/5c2ee1215cc863d1bd62a1b1c811699bc0d355f5

Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'}

Message: Revert "SERVER-77934 Add tests to cover truncate rollback for pre-image removal"

This reverts commit 4d0d8b53091747a37624371a1425a01ce1dab6d6.
Branch: EVG-17874-taskgen-test
https://github.com/mongodb/mongo/commit/2c443478c0490cedd3b26638d0345145ff8bba4b

Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-77934 Add tests to cover truncate rollback for pre-image removal
Branch: EVG-17874-taskgen-test
https://github.com/mongodb/mongo/commit/4d0d8b53091747a37624371a1425a01ce1dab6d6

Comment by Githook User [ 29/Jun/23 ]

Author:

{'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'}

Message: Revert "SERVER-77934 Add tests to cover truncate rollback for pre-image removal"

This reverts commit 4d0d8b53091747a37624371a1425a01ce1dab6d6.
Branch: master
https://github.com/mongodb/mongo/commit/2c443478c0490cedd3b26638d0345145ff8bba4b

Comment by Githook User [ 29/Jun/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-77934 Add tests to cover truncate rollback for pre-image removal
Branch: master
https://github.com/mongodb/mongo/commit/4d0d8b53091747a37624371a1425a01ce1dab6d6

Comment by Jordi Olivares Provencio [ 12/Jun/23 ]

We can't really use the kill_primary overrides by using a matrix suite with change_streams as all the tests that use pre images use client cursors. Using getMore is disallowed by network_error_and_txn_override.js.

I'll be converting this into a noPassthrough test that manually rolls back something mid-test and ensures the collection is consistent

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