[SERVER-54899] Pass in point-in-time value used for getHashesUsingSessions() into getCollectionDiffUsingSessions() Created: 02/Mar/21  Updated: 29/Oct/23  Resolved: 06/Mar/21

Status: Closed
Project: Core Server
Component/s: Internal Code, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-39169 Add testing-only support for doing sn... Closed
Related
is related to SERVER-54902 Time-series collection creation commi... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-03-22
Participants:

 Description   

In run_check_repl_dbhash_background.js, the checkCollectionHashesForDB() function obtains collection hashes at a given time using readAtClusterTime. This point-in-time value needs to be passed into getCollectionDiffUsingSessions too to produce accurate diffs using the same storage snapshot.

 

See max.hirschhorn comment below for more details.



 Comments   
Comment by Githook User [ 06/Mar/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-54899 Pass in point-in-time value used for getHashesUsingSessions() into getCollectionDiffUsingSessions()
Branch: master
https://github.com/mongodb/mongo/commit/0478f8ca30b2897edb635eef7681581adc6c6300

Comment by Max Hirschhorn [ 02/Mar/21 ]

The purpose of introducing ReplSetTest#getHashesUsingSessions() and ReplSetTest#getCollectionDiffUsingSessions() as part of SERVER-34779 was so that they would run within the same multi-document transaction and therefore be guaranteed to be using the same storage snapshot.

It looks like the changes from 9db1a8d as part of SERVER-39169 missed plumbing the point-in-time value to ReplSetTest#getCollectionDiffUsingSessions() despite adding a readAtClusterTime parameter for it.

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