Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRIVERS-2969: increase CSOT timeouts for session prose tests #1643

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/client-side-operations-timeout/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ and password).
This test MUST only be run against replica sets and sharded clusters with server version 4.4 or higher. It MUST be run
three times: once with the timeout specified via the MongoClient `timeoutMS` option, once with the timeout specified via
the ClientSession `defaultTimeoutMS` option, and once more with the timeout specified via the `timeoutMS` option for the
`endSession` operation. In all cases, the timeout MUST be set to 10 milliseconds.
`endSession` operation. In all cases, the timeout MUST be set to 150 milliseconds.

1. Using `internalClient`, drop the `db.coll` collection.

Expand All @@ -537,7 +537,7 @@ the ClientSession `defaultTimeoutMS` option, and once more with the timeout spec
data: {
failCommands: ["abortTransaction"],
blockConnection: true,
blockTimeMS: 15
blockTimeMS: 200
}
}
```
Expand All @@ -555,7 +555,7 @@ the ClientSession `defaultTimeoutMS` option, and once more with the timeout spec

5. Using `session`, execute `session.end_session`

- Expect this to fail with a timeout error after no more than 15ms.
- Expect this to fail with a timeout error after no more than 150ms.

### 10. Convenient Transactions

Expand All @@ -574,12 +574,12 @@ Tests in this section MUST only run against replica sets and sharded clusters wi
data: {
failCommands: ["insert", "abortTransaction"],
blockConnection: true,
blockTimeMS: 15
blockTimeMS: 200
}
}
```

3. Create a new MongoClient (referred to as `client`) configured with `timeoutMS=10` and an explicit ClientSession
3. Create a new MongoClient (referred to as `client`) configured with `timeoutMS=150` and an explicit ClientSession
derived from that MongoClient (referred to as `session`).

4. Using `session`, execute a `withTransaction` operation with the following callback:
Expand Down
Loading