Skip to content

Commit ccf725c

Browse files
authored
Merge pull request #69 from steveren/DOCSP-13313
DOCSP-13313: [MONGOSH] Investigate if reconnecting MongoClient will interfere with sessions
2 parents 4a880df + 227c497 commit ccf725c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. important::
2+
3+
Methods which reset the shell's connection to the server trigger a
4+
termination of all open server :manual:`sessions
5+
</reference/server-sessions>`. When a session ends, all in-progress
6+
operations are terminated as well, and the client must re-authenticate if
7+
authentication is enabled.
8+
9+
The following methods reset the shell's
10+
connection:
11+
12+
- ``db.auth``
13+
- ``Mongo.setReadPref``
14+
- ``Mongo.setReadConcern``

source/reference/methods.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ The following document lists the available methods in the |mdb-shell|.
1818
Click a method to see its documentation in the
1919
:manual:`MongoDB Manual </>`, including syntax and examples.
2020

21+
.. include:: /includes/admonitions/connection-resets.rst
22+
2123
Administration Methods
2224
----------------------
2325

0 commit comments

Comments
 (0)