[SERVER-17286] Update mongo shell for find and getMore commands Created: 13/Feb/15  Updated: 19/Sep/15  Resolved: 04/Aug/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.1.7

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

Backwards Compatibility: Fully Compatible
Sprint: Quint Iteration 7
Participants:

 Comments   
Comment by Githook User [ 28/Jul/15 ]

Author:

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

Message: SERVER-17286 shell should pass invalid falsy query parameters through to the server

Without this change, something like cursor.maxTimeMS(undefined) would not result in an error with --readMode commands enabled.
Branch: master
https://github.com/mongodb/mongo/commit/3da765b38f8e0893ed471b2cb93e62c2686cbec1

Comment by Githook User [ 27/Jul/15 ]

Author:

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

Message: SERVER-17286 shell should pass invalid falsy query parameters through to the server

Without this change, something like cursor.maxTimeMS(undefined) would not result in an error with --readMode commands enabled.
Branch: master
https://github.com/mongodb/mongo/commit/3da765b38f8e0893ed471b2cb93e62c2686cbec1

Comment by David Storch [ 10/Jul/15 ]

Remaining work on this ticket is to detect the shell read mode (find/getMore commands versus C++ client's implementation of OP_QUERY/OP_GET_MORE) based on the wire protocol version.

Comment by Githook User [ 10/Jul/15 ]

Author:

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

Message: SERVER-17286 extend shell to use getMore command if --readMode is commands
Branch: master
https://github.com/mongodb/mongo/commit/035b91eb3d88478efcfbf504de9555921b6b1165

Comment by Githook User [ 23/Mar/15 ]

Author:

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

Message: SERVER-17286 add --readMode flag to shell

Passing '--readMode commands' to the shell will now cause it to run find using the find command,
combined with wire protocol OP_GET_MORE messages. The default readMode remains OP_QUERY style find.
Branch: master
https://github.com/mongodb/mongo/commit/2729de652a23d33aefc6c5ea89e6593c83b25c7f

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