-
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
Conversation
etc/notes/errors.md
Outdated
@@ -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`. |
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.
It is generated by the driver in support of the "client side operation timeout" feature so inherits from `MongoDriverError`. | |
It is generated by the driver in support of the "client side operation timeout" feature and inherits from `MongoDriverError`. |
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
etc/notes/errors.md
Outdated
- 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 comment
The reason will be displayed to describe this comment to others. Learn more.
When `timeoutMS` is enabled `MongoServerErrors` relating to `MaxTimeExpired` errors will be converted to `MongoOperationTimeoutError` | |
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 comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
There is a comment that says
'TODO(DRIVERS-2965): see modified test in unified-csot-node-specs', // Skipping for both tailable awaitData and tailable non-awaitData cursors
in client_side_operations_timeout.spec.test.ts - can we remove or update it in this PR?
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.
removed
… fix internal references (#4315)
Description
What is changing?
Is there new documentation needed for these changes?
What is the motivation for this change?
Clarity on the error subject
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript