Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41560

MongoDB should default the snapshot window size to 0 when running with the WT inMemory storage engine

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc3, 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2019-06-17, Execution Team 2019-07-01, Execution Team 2019-07-15
    • 0

      The WT inMemory storage engine does not need to maintain snapshot history nor does it have a metric which MongoDB can use to gauge cache pressure and control the snapshot history window size. The window size should be kept at 0 for v4.2. inMemory members of a replica set cannot actually run transactions in v4.2, though they can replicate them.

      Voting inMemory replica set members require the replica set config to set the writeConcernMajorityJournalDefault to false. Replica sets with such configuration are not currently allowed to run replica set / shared transactions.

      An inMemory replica set with writeConcernMajorityJournalDefault set to true must be non-voting. Therefore, such a member cannot be primary. Transactions are only run against primary replica set members. So again, the inMemory node cannot directly run transactions, only replicate them as a secondary.

      There is no need for inMemory nodes to maintain snapshot history.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: