[SERVER-40537] Log error code 261 for TooManyLogicalSessions to the mongodb.log Created: 08/Apr/19  Updated: 29/Oct/23  Resolved: 17/Oct/19

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 3.6.11
Fix Version/s: 3.6.15

Type: New Feature Priority: Major - P3
Reporter: Mariano Escribano Assignee: Anton Oyung
Resolution: Fixed Votes: 4
Labels: esha-summer-2019-neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-10-21
Participants:
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.



 Comments   
Comment by Githook User [ 17/Oct/19 ]

Author:

{'username': 'AntonOyung', 'email': 'anton.oyung@mongodb.com', 'name': 'Anton Oyung'}

Message: SERVER-40537 Log error code 261 for TooManyLogicalSessions to the mongodb.log
Branch: master
https://github.com/mongodb/mongo/commit/ac106264b40f3e125ed25de12c8d72102e5b7ac2

Generated at Thu Feb 08 04:55:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.