This repository was archived by the owner on May 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
COMPASS-3943: Update to latest node driver 3.3.4 #154
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
[email protected]
We'll wait for
|
These were breaking on update because of info leakage from driver. 1. Connectivity is tested with `mongodb-connection-model#test()` not via a connect() call because a test should use different timeout values than a connection which will be used more than once. In the case of this test, the selection timeout in the driver is 30000ms which caused this test to fail with `exceeded test timout of 2000`. 2. Retryable reads and writes are now supported by the driver which invalidates the state the disconnect() test relied upon, resulting in a `Topology Destroyed` errror for subsequent calls to the client once closed. Like #1 above, after 30000ms, the `count()` would eventually error but full disconnect() behavior is tested in many other code paths.
imlucas
added a commit
to mongodb-js/compass
that referenced
this pull request
Nov 12, 2019
imlucas
added a commit
to mongodb-js/compass
that referenced
this pull request
Nov 13, 2019
* chore: update to node [email protected] * chore: remove extraneous mongodb-core dependency * COMPASS-3943: Update to [email protected] * chore: update to `[email protected]` mongodb-js/data-service#154 * fix: Deprecate usage of mongodb-core Instead use equivalent `require('mongodb').ReadPreference`
imlucas
added a commit
to mongodb-js/compass
that referenced
this pull request
Nov 13, 2019
* chore: update to node [email protected] * chore: remove extraneous mongodb-core dependency * COMPASS-3943: Update to [email protected] * chore: update to `[email protected]` mongodb-js/data-service#154 * fix: Deprecate usage of mongodb-core Instead use equivalent `require('mongodb').ReadPreference`
durran
pushed a commit
to mongodb-js/compass
that referenced
this pull request
Nov 13, 2019
* chore: update to node [email protected] * chore: remove extraneous mongodb-core dependency * COMPASS-3943: Update to [email protected] * chore: update to `[email protected]` mongodb-js/data-service#154 * fix: Deprecate usage of mongodb-core Instead use equivalent `require('mongodb').ReadPreference`
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the node.js driver from
3.3.2
to the latest release3.3.4
. It contains many improvements and bug fixes. The full changelog is below.Changelog Highlights
High Priority SDAM Fixes
Fixes the underlying cause of timeout-related errors such as "Server selection timed out" with more details in COMPASS-3849 COMPASS-3728. The pull request mongodb/node-mongodb-native#2197 contains much more context on the fix, and a new design document includes how and why the node.js driver team chose this architecture and future improvements it will enable.
Fix unsafe Buffer usage
Removes the last unsafe buffer usage warning from the devtools console/terminal output when using or developing Compass. Rejoice!
Update from an Aggregation Pipeline
While it has yet to come up, it is worth noting for the future that Compass can now technically add support for updates in aggregation pipeline stages which are new in MongoDB 4.2.
sdam_viz
An internal tool for debugging SDAM (Server Discovery and Monitoring) that could be used as a base for a more productive connection debugging feature in Compass or merely adding to
data-service
debug logs.mongodb-core "deprecation"
The
mongodb-core
dependency has been removed frommongodb-data-service
because it has been moved back into the driver codebase as of[email protected]
.mongodb-core
will be officially deprecated in the future by the driver team.node.js driver changelog
Diff v3.3.2...v3.3.4
Checklist
Two tests were failing with this update because of assumptions made on much older releases of the driver. These tests were for smoke testing functional side effects only, for example, calling count() after disconnect() always throws an immediate error. I've removed them. correct2aac96d208122cd2a92132d2dff2740eaca5cd87
Motivation and Context
[email protected]
from[email protected]
Dependents
Depended on by mongodb-js/compass#1834
Types of changes