[SERVER-19572] Change shell default read mode to "compatibility" Created: 24/Jul/15  Updated: 14/Oct/15  Resolved: 30/Sep/15

Status: Closed
Project: Core Server
Component/s: Querying, Shell
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Improvement Priority: Major - P3
Reporter: J Rassi Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-20194 Enable new cursor manager path in mon... Closed
Related
related to SERVER-17544 find/getMore commands cleanup and tes... Closed
related to SERVER-20067 Shell should decide whether or not to... Closed
is related to SERVER-20915 Resolve shell readMode on connection ... Closed
Backwards Compatibility: Fully Compatible
Sprint: QuInt A (10/12/15)
Participants:

 Description   

The shell's default read mode should be changed to "compatibility". This will cause the shell to auto-detect whether to use OP_QUERY/OP_GET_MORE or find/getMore commands based on wire version by default.

When this change is made, the resmoke.py suites should be changed to pass "-readMode legacy" or "readMode commands" in order to ensure a particular read protocol. Suites testing legacy configurations such as SCCC mode config servers or legacy write ops should also be configured to use "readMode legacy". All other suites should ensure use of the find/getMore commands via "-readMode commands".



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

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-20067 SERVER-19572 set readMode in shell based on wire version

"compatibility" readMode now causes the shell to detect whether or not
to use find/getMore commands based on wire version. "commands" mode
forces use of the find/getMore commands, and "legacy" mode forces uses
of legacy OP_QUERY/OP_GET_MORE reads.

Also configures tests to force use of "commands" or "legacy" mode as
appropriate.
Branch: master
https://github.com/mongodb/mongo/commit/df2a33f9974950ebe484edfa29171cec53071b0a

Comment by Githook User [ 21/Aug/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19572 fix cursor8.js to work regardless of the --readMode setting
Branch: master
https://github.com/mongodb/mongo/commit/e19d1fd4f366d6e53beba4842e466a42435d8609

Comment by Githook User [ 21/Aug/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19572 enable --readMode commands for auth suites
Branch: master
https://github.com/mongodb/mongo/commit/94271c110285198f4203c377788ac1d579b23fd2

Generated at Thu Feb 08 03:51:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.