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

Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.2.0, 4.4.13, 5.0.7
    • None
    • Fully Compatible
    • ALL
    • v5.1, v5.0, v4.4
    • Sharding 2021-11-01
    • 21

    Description

      In verify_sessions_expiration_sharded.js, we refresh the logical session cache on mongos before guaranteeing that every config server node has replicated the chunk metadata associated with the sessions collection. We should either wait for the config server nodes to fully replicate the data or keep looping the mongos refresh until it is able to detect the sessions collection on the config server. 

      Edit: Another(better) solution would be to move the cache refresh when starting up a ShardingTest above this line to guarantee that each of the config server nodes has refreshed their cache.

      Attachments

        Activity

          People

            sanika.phanse@mongodb.com Sanika Phanse
            jason.zhang@mongodb.com Jason Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: