MongoDB shell version v4.0.3
connecting to: mongodb://127.0.0.1:27017
Implicit session: session { "id" : UUID("2ac317e9-9ecf-4984-afdd-b3c40dfc3412") }
MongoDB server version: 4.0.3
Is this change something new? I checked the 4.0.3 changelog and see no mention of implicit sessions being printed by the mongo shell.
Hi Bob,
This is part of the work tracked under SERVER-33606.
The implicit session itself is not new in version 4.0.3. What you noticed is the change to make it more transparent to mongo shell users about the implicit session ID used by mongo shell. This is relating to mongo shell startSession() to fail if the server doesn’t support logical sessions.
An implicit session is one started implicitly by mongo shell, because it calls an operation without providing an explicit session.
Regards,
Wan.