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

XMLWordPrintableJSON

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

      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.

              Assignee:
              Marcos José Grillo Ramirez
              Reporter:
              Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: