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

Cannot add session into the cache error code 261

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 4.0.3
    • None
    • Internal Code
    • None
    • ALL
    • Sharding 2019-02-25

    Description

      We have a MongoDB cluster with the following configuration:

      • 3 config servers (replicatesconfig)
      • 2 shards (replicaset)
      • 3 mongos

      After high load testing we found out that the queries start to fail and we get the following error.

      ok" : 0,
       "errmsg" : "cannot add session into the cache",
       "code" : 261,
       "codeName" : "TooManyLogicalSessions",
       "operationTime" : Timestamp(1547653301, 1),
        "$clusterTime" : {
          "clusterTime" : Timestamp(1547653301, 1),
          "signature" : {
            "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
            "keyId" : NumberLong(0)
        }
      

      Inside mongo logs we could find this message:

      CONTROL [LogicalSessionCacheRefresh] Failed to refresh session cache: NoProgressMade: no progress was made executing batch write op in config.system.sessions after 5 rounds (0 ops completed in 6 rounds total)

      After some research there is no documentation related to this error. What does this error mean? How can we fix it?

      Attachments

        1. mongod_PRIMARY.txt
          13.34 MB
        2. mongod_SECONDARY.txt
          183 kB

        Issue Links

          Activity

            People

              misha.tyulenev@mongodb.com Misha Tyulenev
              emarketingsolutions Jaume Valls Vila
              Votes:
              0 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: