-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs(NODE-6516): add documentation for MongoOperationTimeoutError and fix internal references #4315
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -111,7 +111,9 @@ This class should **never** be directly instantiated. | |||||
|
||||||
### `MongoOperationTimeoutError` | ||||||
|
||||||
- TODO(NODE-6491): Add MongoOperationTimeoutError documentation | ||||||
The `MongoOperationTimeoutError` class represents an error that occurs when an operation could not be completed within the specified `timeoutMS`. | ||||||
It is generated by the driver in support of the "client side operation timeout" feature so inherits from `MongoDriverError`. | ||||||
When `timeoutMS` is enabled `MongoServerErrors` relating to `MaxTimeExpired` errors will be converted to `MongoOperationTimeoutError` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||||||
|
||||||
### MongoUnexpectedServerResponseError | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ import { | |
import { type FailPoint, makeMultiBatchWrite, measureDuration } from '../../tools/utils'; | ||
import { filterForCommands } from '../shared'; | ||
|
||
// TODO(NODE-5824): Implement CSOT prose tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a comment that says There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed |
||
describe('CSOT spec prose tests', function () { | ||
let internalClient: MongoClient; | ||
let client: MongoClient; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed