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

Sharded logical sessions cache refresh ignores failure to update or delete session records

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-04-20, Sharding 2020-05-04
    • 25

    Description

      To refresh or remove session records from the logical sessions collection, the sharded logical sessions cache (i.e. on a mongos or shard server) uses lambdas that run bulk writes through the ClusterWriter (here and here). These lambdas return the status from each write's response, but when the lambda is invoked, the return value is ignored, so if either write fails, the refresh will not notice and continue running, which can lead to incorrectly killing the sessions of recently established cursors.

      It looks like this was introduced by SERVER-42508, so it should only affect 4.4 and the current master.

      Attachments

        Activity

          People

            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: