[SERVER-49139] Skip snapshot read tests with inMemory Created: 25/Jun/20  Updated: 29/Oct/23  Resolved: 27/Jun/20

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

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 25

 Comments   
Comment by Githook User [ 27/Jun/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-49139 Skip snapshot tests with inMemory
Branch: master
https://github.com/mongodb/mongo/commit/bfa69dbb3978645143e301d8966d020b58de0f4d

Comment by A. Jesse Jiryu Davis [ 26/Jun/20 ]

Snapshot reads are only reliable if the server keeps a minimum amount of history, but the inMemory storage engine doesn't guarantee anything:

    if (_ephemeral && !TestingProctor::instance().isEnabled()) {
        // We do not maintain any snapshot history for the ephemeral storage engine in production
        // because replication and sharded transactions do not currently run on the inMemory engine.
        // It is live in testing, however.
        minSnapshotHistoryWindowInSeconds.store(0);
    }

TestingProctor is enabled for unittests, not JSTests.

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