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

Log error code 261 for TooManyLogicalSessions to the mongodb.log

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2019-10-21
    • Case:

      Description

      When the mongod server responds to the client with something like the following (mongo shell in this example):

      MongoDB Enterprise mongos> show dbs
      2019-04-08T17:54:08.081+0000 E QUERY    [js] Error: listDatabases failed:{
          "ok" : 0,
          "errmsg" : "cannot add session into the cache",
          "code" : 261,
          "codeName" : "TooManyLogicalSessions",
      

      a corresponding error is not logged to the mongodb.log for the mongoS, making troubleshooting more difficult if the error from the application side is not immediately available. This seems like a low-hanging-fruit improvement we can make to facilitate troubleshooting.

        Attachments

          Activity

            People

            Assignee:
            anton.oyung Anton Oyung
            Reporter:
            mariano.escribano Mariano Escribano
            Participants:
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: