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

Log error code 261 for TooManyLogicalSessions to the mongodb.log

    • Fully Compatible
    • Sharding 2019-10-21

      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.

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

              Created:
              Updated:
              Resolved: