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

Prevent secondaries in SessionsCollectionRS from attempting to set up the sessions collection.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.7, 4.0.2, 4.1.2
    • Fix Version/s: 3.6.9, 4.0.4, 4.1.5
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Sharding 2018-09-24, Sharding 2018-10-22

      Description

      Problem

      In the LogicalSessionCache on replica sets, both primaries and secondaries attempt to create the sessions collection or its indexes. The secondary should only check that the collection and indexes exist before performing operations. The primary will be responsible for both creating the collection and ensuring that the indexes exist.

      Proposed Fix

      1. In SessionsCollection::setupSessionsCollection, have secondaries instead check for collection and index existence. If either doesn't exist, return an error status. Otherwise, continue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: