[SERVER-42077] Add 'allowDiskUse' option to find command Created: 03/Jul/19  Updated: 29/Oct/23  Resolved: 12/Jul/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Mikhail Ivkov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-694 Add 'allowDiskUse' option to find com... Closed
Documented
is documented by DOCS-12888 Investigate changes in SERVER-42077: ... Closed
is documented by DOCS-13066 Investigate changes in SERVER-7694: e... Closed
Related
related to SERVER-42490 Implement allowDiskUse() shell helper... Closed
related to SERVER-43683 Make find command with allowDiskUse o... Closed
Backwards Compatibility: Minor Change
Sprint: Query 2019-07-15, Query 2019-07-29
Participants:

 Description   

This is preparatory work for supporting external sort for the find command (SERVER-7694). Further work will be required for the allowDiskUse option to actually take effect. This ticket just tracks the work necessary to parse the option and set it on QueryRequest, and then to plumb the resulting boolean flag down to SortStage.

The allowDiskUse flag is optional, and must be a boolean if present. If not present, it defaults to false. These behaviors should be identical to the allowDiskUse flag accepted by the aggregate command.

Since allowDiskUse:true won't actually do anything until further engineering work is completed, the find command should fail if allowDiskUse:true is specified and enableTestCommands is false. This ensures that users cannot access the feature until it is fully implemented. This restriction will be lifted once SERVER-7694 is implemented.

We will also need to add a shell helper for setting the allowDiskUse flag. That work can be split off into a separate ticket if it doesn't fit naturally here.



 Comments   
Comment by Githook User [ 12/Jul/19 ]

Author:

{'name': 'Misha Ivkov', 'email': 'misha.ivkov@10gen.com'}

Message: SERVER-42077 Add 'allowDiskUse' option to find command
Branch: master
https://github.com/mongodb/mongo/commit/e6c531c7bc01e628052792a5c94c6da3e5779adf

Generated at Thu Feb 08 04:59:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.