-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
TIG 2017-10-02
The Mongo.prototype.runCommand() and Mongo.prototype.runCommandWithMetadata() functions should be overridden such that an error is thrown if they receive a command object without an "lsid" property. This approach would have caught the issue with getMore command requests described in SERVER-30848 and may find additional gaps in how sessions are integrated in the mongo shell.
Note: Until SERVER-30848 is fixed, we can condition throwing an error on the command being something other than a getMore.
- is related to
-
SERVER-30848 getMore requests do not use a session in the mongo shell
- Closed