[SERVER-47616] Improve error when logical sessions cannot have more than one user authenticated on a single connection Created: 17/Apr/20  Updated: 29/Oct/23  Resolved: 30/Sep/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.6.0, 4.0.0, 4.2.0
Fix Version/s: 4.8.0, 4.4.2, 4.2.11, 4.0.21

Type: Improvement Priority: Major - P3
Reporter: Dmitry Agranat Assignee: Andrew Shuvalov (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-47607 "errmsg" : "too many users are authen... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Sharding 2020-10-05
Participants:

 Description   

Currently, we print this error when logical sessions cannot have more than one user authenticated on a single connection:

 
E QUERY    [js] Error: listDatabases failed:{
"operationTime" : Timestamp(1528996174, 15),
"ok" : 0,
"errmsg" : "too many users are authenticated",
"code" : 13,
"codeName" : "Unauthorized",
"$clusterTime" : {
"clusterTime" : Timestamp(1528996174, 15),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
 		}
 	}
 } :

It would be more helpful for self-diagnostics and provide a better hint to a problem by printing something like this instead:

logical sessions can't have multiple authenticated users (for more details see: https://docs.mongodb.com/manual/core/authentication/#authentication-methods)



 Comments   
Comment by Githook User [ 30/Sep/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-47616: Improve error when logical sessions cannot have more than one user authenticated on a single connection
Branch: v4.2
https://github.com/mongodb/mongo/commit/5aa7067d9e1c36cd89c49d906a79c9f51b8cdac0

Comment by Githook User [ 30/Sep/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-47616: Improve error when logical sessions cannot have more than one user authenticated on a single connection
Branch: v4.0
https://github.com/mongodb/mongo/commit/56550895a3910b89c3def30cc12e0148a6cd9b4c

Comment by Githook User [ 29/Sep/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-47616: Improve error when logical sessions cannot have more than one user authenticated
Branch: v4.4
https://github.com/mongodb/mongo/commit/81fa359cbf848d681d7ceca0acd034d8203c7831

Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-47616: changed auto made by the linter, no op
Branch: master
https://github.com/mongodb/mongo/commit/56729130a2bf0d39463160162d684c1e21018966

Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-47616: improve error message plus tests
Branch: master
https://github.com/mongodb/mongo/commit/55209f44d80a7351f3a3ad81052e6bea0202bea8

Comment by Xgen-Evergreen-User [ 23/Sep/20 ]

Evergreen version 5f6bb40d3627e058ab694b40 in 'mongodb-mongo-master' has succeeded!

Comment by Andrew Shuvalov (Inactive) [ 23/Sep/20 ]

Hi, I've created pull request https://github.com/mongodb/mongo/pull/1378 . Working on creating code review...

Generated at Thu Feb 08 05:14:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.