Skip to content

Commit dafe435

Browse files
committed
DRIVERS-3439 remove more pre-4.2 references found in review
1 parent 6c2b1f2 commit dafe435

3 files changed

Lines changed: 11 additions & 27 deletions

File tree

source/find_getmore_killcursors_commands/find_getmore_killcursors_commands.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ A BSON document containing the fields making up a MongoDB server command.
2727

2828
#### Wire Protocol
2929

30-
The binary protocol used to talk with MongoDB over a socket. It's made up by the OP_QUERY, OP_GET_MORE, OP_KILL_CURSORS,
31-
OP_INSERT, OP_UPDATE and OP_DELETE.
30+
The binary protocol used to talk with MongoDB over a socket.
3231

3332
## Guidance
3433

@@ -49,8 +48,7 @@ Drivers:
4948
### find
5049

5150
The [find](https://www.mongodb.com/docs/manual/reference/command/find/) command replaces the query functionality of the
52-
OP_QUERY wire protocol message but cannot execute queries against special collections. Unlike the legacy OP_QUERY wire
53-
protocol message, the **find** command cannot be used to execute other commands.
51+
OP_QUERY wire protocol message but cannot execute queries against special collections.
5452

5553
For a successful command, the document returned from the server has the following format:
5654

@@ -180,16 +178,15 @@ Further, after these transformation:
180178

181179
#### BatchSize of 1
182180

183-
In 3.2 a batchSize of 1 means return a single document for the find command and it will not destroy the cursor after the
184-
first batch of documents are returned. Given a query returning 4 documents the number of commands issues will be.
181+
A batchSize of 1 means return a single document for the find command and it will not destroy the cursor after the first
182+
batch of documents are returned. Given a query returning 4 documents the number of commands issues will be.
185183

186184
1. **find** command with batchSize=1
187185
2. **getMore** command with batchSize=1
188186
3. **getMore** command with batchSize=1
189187
4. **getMore** command with batchSize=1
190188

191-
The driver **SHOULD NOT attempt to emulate the behavior seen in 3.0 or earlier** as the new find command enables the
192-
user expected behavior of allowing the first result to contain a single document when specifying batchSize=1.
189+
The `find` command allows the first result to contain a single document when specifying batchSize=1.
193190

194191
#### Tailable cursors
195192

@@ -242,8 +239,8 @@ to the value of the option **maxAwaitTimeMS**. If no **maxAwaitTimeMS** is speci
242239
### getMore
243240

244241
The [getMore](https://www.mongodb.com/docs/manual/reference/command/getMore/) command replaces the **OP_GET_MORE** wire
245-
protocol message. The query flags passed to OP_QUERY for a getMore command MUST be secondaryOk=true when sent to a
246-
secondary. The OP_QUERY namespace MUST be the same as for the **find** and **killCursors** commands.
242+
protocol message. The query flags passed to OP_MSG for a getMore command MUST be secondaryOk=true when sent to a
243+
secondary. The OP_MSG namespace MUST be the same as for the **find** and **killCursors** commands.
247244

248245
```typescript
249246
interface GetMoreCommand {
@@ -296,8 +293,8 @@ The driver's local cursor MUST update its `id` and `ns`, as well as store the `n
296293
### killCursors
297294

298295
The [killCursors](https://www.mongodb.com/docs/manual/reference/command/killCursors/) command replaces the
299-
**OP_KILL_CURSORS** wire protocol message. The OP_QUERY namespace MUST be the same as for the **find** and **getMore**
300-
commands. The **killCursors** command is optional to implement in **MongoDB 3.2**.
296+
**OP_KILL_CURSORS** wire protocol message. The OP_MSG namespace MUST be the same as for the **find** and **getMore**
297+
commands.
301298

302299
The command response will be as follows:
303300

@@ -407,11 +404,6 @@ Like other commands, the find and getMore commands will not use the OP_REPLY res
407404

408405
## FAQ
409406

410-
### Changes in error handling for 3.2 tailable cursor
411-
412-
Tailable cursors pointing to documents in a capped collection that get overwritten will return a zero document result in
413-
MongoDB 3.0 or earlier but will return an error in MongoDB 3.2
414-
415407
### Explain command
416408

417409
There is no equivalent of the `$explain` modifier in the find command. The driver SHOULD use the **explain** command.

source/server-discovery-and-monitoring/server-discovery-and-monitoring.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,15 +1582,8 @@ drivers continue to maintain the reversed logic when connected to a topology tha
15821582

15831583
#### Requirements for read-your-writes consistency
15841584

1585-
Using (electionId, setVersion) only provides read-your-writes consistency if:
1586-
1587-
- The application uses the same MongoClient instance for write-concern "majority" writes and read-preference "primary"
1588-
reads, and
1589-
- All members use MongoDB 2.6.10+, 3.0.0+ or 3.2.0+ with replication protocol 0 and clocks are *less* than 30 seconds
1590-
skewed, or
1591-
- All members run MongoDB 3.2.0 and replication protocol 1 and clocks are *less* skewed than the election timeout
1592-
(`electionTimeoutMillis`, which defaults to 10 seconds), or
1593-
- All members run MongoDB 3.2.1+ and replication protocol 1 (in which case clocks need not be synchronized).
1585+
Using (electionId, setVersion) only provides read-your-writes consistency if the application uses the same MongoClient
1586+
instance for write-concern "majority" writes and read-preference "primary" reads.
15941587

15951588
#### Scenario
15961589

source/unified-test-format/unified-test-format.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3187,7 +3187,6 @@ The test runner MAY ignore the following command failures:
31873187

31883188
- Interrupted(11601) to work around [SERVER-38335](https://jira.mongodb.org/browse/SERVER-38335).
31893189
- Unauthorized(13) to work around [SERVER-54216](https://jira.mongodb.org/browse/SERVER-54216).
3190-
- CommandNotFound(59) if the command is executed on a pre-3.6 server
31913190

31923191
Note that Atlas, by design, does not allow database users to kill sessions belonging to other users. This makes it
31933192
impossible to guarantee that an existing transaction will not block test execution. To work around this, test runners

0 commit comments

Comments
 (0)