Logical session cache refresh during test setup is not guaranteed to fetch up to date information

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 8.0.0-rc0, 7.3.0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-04-01, CAR Team 2024-04-15
    • 5
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As part of the setup of a sharded cluster in our tests, we refresh the logical session cache on the config servers. This will create and shard the config.system.sessions collection. In the fixture setup, we then force a refresh of the logical sessions cache on the mongoS which will call getCollectionRoutingInfoWithPlacementRefresh for the sessions collection and throw if the collection is not sharded.

      However, this refresh is not guaranteed to see the effects of the sharding of config.system.sessions. The mongoS has received no stale config error and so has not advanced the time in store of its cache. And it has not had contact with any shards or the config server since the logical session cache refresh on the config server, so the mongoS will not have advanced its config time. Catalog cache refreshes use kNearest and so there is no guarantee that this refresh will see the sessions collection as sharded.

            Assignee:
            Robert Sander
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: