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

The logical sessions cache cannot be refreshed in secondary nodes of the CSRS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 6.0.4, 6.2.0-rc5, 6.3.0-rc0
    • Affects Version/s: 6.1.0, 6.0.3, 6.2.0-rc1
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.2, v6.1, v6.0
    • Sharding EMEA 2022-12-12, Sharding EMEA 2022-12-26

      SERVER-66078 added an extra step to the lazy initialisation of the config.system.sessions collection performed by SessionsCollectionConfigServer to also persist a custom value for its max chunk size. As any write operation, such extra step should only be performed when running process acts as the primary node of the CSRS.

      Nevertheless, there is no condition in place to prevent the new logic from also being executed by secondary nodes - and raising a PrimarySteppedDown error when a write is attempted.

      This is causing the periodic refresh of the logical session caches in the CSRS secondary nodes to fail on each iteration when setupSessionsCollection() is invoked.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: