replicaset: More verbose replica set errors emission: (#231) (de6d220)
2.1.17 2017-10-11
fix a typo that completely broke SCRAM-SHA1 authentication
2.1.16 2017-10-11
avoid waiting for reconnect if reconnect disabled in Server topology
avoid waiting for reconnect if reconnect disabled in Cursor
NODE-990 cache the ScramSHA1 salted passwords up to 200 entries
NODE-1153 ensure that errors are propagated on force destroy
NODE-1153 ensure inUse and connecting queues are cleared on reauth
2.1.15 2017-08-08
Emit SDAM events on close and reconnect
2.1.14 2017-07-07
NODE-1073 updates scram.js hi() algorithm to utilize crypto.pbkdf2Sync()
NODE-1049 only include primary server if there are no secondary servers for
readPrefrence secondaryPreferred
moved assign polyfill to shared utils, replace usage of extend in tests
2.1.13 2017-06-19
NODE-1039 ensure we force destroy server instances, forcing queue to be flushed.
Use actual server type in standalone SDAM events.
2.1.12 2017-06-02
NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
Minor fix to report the correct state on error.
NODE-1020 'family' was added to options to provide high priority for ipv6 addresses (Issue #1518, https://github.com/firej).
Fix require_optional loading of bson-ext.
Ensure no errors are thrown by replset if topology is destroyed before it finished connecting.
NODE-999 SDAM fixes for Mongos and single Server event emitting.
NODE-1014 Set socketTimeout to default to 360 seconds.
NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
2.1.11 2017-05-22
NODE-987 Clear out old intervalIds on when calling topologyMonitor.
NODE-987 Moved filtering to pingServer method and added test case.
Check for connection destroyed just before writing out and flush out operations correctly if it is (Issue #179, https://github.com/jmholzinger).
NODE-989 Refactored Replicaset monitoring to correcly monitor newly added servers, Also extracted setTimeout and setInterval to use custom wrappers Timeout and Interva.
2.1.10 2017-04-18
NODE-981 delegate auth to replset/mongos if inTopology is set.
NODE-978 Wrap connection.end in try/catch for node 0.10.x issue causing exceptions to be thrown, Also surfaced getConnection for mongos and replset.
NODE-696 Handle interrupted error for createIndexes.
Fixed isse when user is executing find command using Server.command and it get interpreted as a wire protcol message, #172.
NODE-966 promoteValues not being promoted correctly to getMore.
Merged in fix for flushing out monitoring operations.
2.1.9 2017-03-17
Return lastIsMaster correctly when connecting with secondaryOnlyConnectionAllowed is set to true and only a secondary is available in replica state.
Clone options when passed to wireProtocol handler to avoid intermittent modifications causing errors.
Ensure SSL error propegates better for Replset connections when there is a SSL validation error.
NODE-957 Fixed issue where < batchSize not causing cursor to be closed on execution of first batch.
NODE-958 Store reconnectConnection on pool object to allow destroy to close immediately.
2.1.8 2017-02-13
NODE-925 ensure we reschedule operations while pool is < poolSize while pool is growing and there are no connections with not currently performing work.
NODE-927 fixes issue where authentication was performed against arbiter instances.
NODE-915 Normalize all host names to avoid comparison issues.
Fixed issue where pool.destroy would never finish due to a single operation not being executed and keeping it open.
2.1.7 2017-01-24
NODE-919 ReplicaSet connection does not close immediately (Issue #156).
NODE-901 Fixed bug when normalizing host names.
NODE-909 Fixed readPreference issue caused by direct connection to primary.
NODE-910 Fixed issue when bufferMaxEntries == 0 and read preference set to nearest.
2.1.6 2017-01-13
NODE-908 Keep auth contexts in replset and mongos topology to ensure correct application of authentication credentials when primary is first server to be detected causing an immediate connect event to happen.
2.1.5 2017-01-11
updated bson and bson-ext dependencies to 1.0.4 to work past early node 4.x.x version having a broken Buffer.from implementation.
2.1.4 2017-01-03
updated bson and bson-ext dependencies to 1.0.3 due to util.inspect issue with ObjectId optimizations.
2.1.3 2017-01-03
Monitoring operations are re-scheduled in pool if it cannot find a connection that does not already have scheduled work on it, this is to avoid the monitoring socket timeout being applied to any existing operations on the socket due to pipelining
Moved replicaset monitoring away from serial mode and to parallel mode.
updated bson and bson-ext dependencies to 1.0.2.
2.1.2 2016-12-10
Delay topologyMonitoring on successful attemptReconnect as no need to run a full scan immediately.
Emit reconnect event in primary joining when in connected status for a replicaset.
2.1.1 2016-12-08
Updated bson library to 1.0.1.
Added optional support for bson-ext 1.0.1.
2.1.0 2016-12-05
Updated bson library to 1.0.0.
Added optional support for bson-ext 1.0.0.
Expose property parserType allowing for identification of currently configured parser.
Implemented domain backward comp support enabled via domainsEnabled options on Server/ReplSet/Mongos and MongoClient.connect.
Initial max staleness implementation for ReplSet and Mongos for 3.4 support.
Added handling of collation for 3.4 support.
2.0.6 2016-07-19
Destroy connection on socket timeout due to newer node versions not closing the socket.
2.0.5 2016-07-15
Minor fixes to handle faster MongoClient connectivity from the driver, allowing single server instances to detect if they are a proxy.
Added numberOfConsecutiveTimeouts to pool that will destroy the pool if the number of consecutive timeouts > reconnectTries.
Print warning if seedlist servers host name does not match the one provided in it's ismaster.me field for Replicaset members.
Fix issue where Replicaset connection would not succeeed if there the replicaset was a single primary server setup.
2.0.4 2016-07-11
Updated bson to version 0.5.1.
handle situation where user is providing seedlist names that do not match host list. fix allows for a single full discovery connection sweep before erroring out.
NODE-747 Polyfill for Object.assign for 0.12.x or 0.10.x.
NODE-746 Improves replicaset errors for wrong setName.
2.0.3 2016-07-08
Implemented Server Selection Specification test suite.
Added warning level to logger.
Added warning message when sockeTimeout < haInterval for Replset/Mongos.
2.0.2 2016-07-06
Mongos emits close event on no proxies available or when reconnect attempt fails.
Replset emits close event when no servers available or when attemptReconnect fails to reconnect.
Don't throw in auth methods but return error in callback.
2.0.1 2016-07-05
Added missing logout method on mongos proxy topology.
Fixed logger error serialization issue.
Documentation fixes.
2.0.0 2016-07-05
Moved all authentication and handling of growing/shrinking of pool connections into actual pool.
All authentication methods now handle both auth/reauthenticate and logout events.
Introduced logout method to get rid of onAll option for logout command.
Updated bson to 0.5.0 that includes Decimal128 support.
Make authentication process retry up to authenticationRetries at authenticationRetryIntervalMS interval.
Made ismaster replicaset calls operate with connectTimeout or monitorSocketTimeout to lower impact of big socketTimeouts on monitoring performance.
Make sure connections mark as "immediateRelease" don't linger the inUserConnections list. Otherwise, after that connection times out, getAll() incorrectly returns more connections than are effectively present, causing the pool to not get restarted by reconnectServer. (Issue #99, https://github.com/nbrachet).
Make cursor getMore or killCursor correctly trigger pool reconnect to single server if pool has not been destroyed.
Make ismaster monitoring for single server connection default to avoid user confusion due to change in behavior.
1.3.20 2016-05-25
NODE-710 Allow setting driver loggerLevel and logger function from MongoClient options.
Minor fix for SSL errors on connection attempts, minor fix to reconnect handler for the server.
Don't write to socket before having registered the callback for commands, work around for windows issuing error events twice on node.js when socket gets destroyed by firewall.
Fix minor issue where connectingServers would not be removed correctly causing single server connections to not auto-reconnect.
1.3.19 2016-05-17
Handle situation where a server connection in a replicaset sometimes fails to be destroyed properly due to being in the middle of authentication when the destroy method is called on the replicaset causing it to be orphaned and never collected.
Set keepAlive to false by default to work around bug in node.js for Windows XP and Windows 2003.
Ensure replicaset topology destroy is never called by SDAM.
Ensure all paths are correctly returned on inspectServer in replset.
1.3.18 2016-04-27
Hardened cursor connection handling for getMore and killCursor to ensure mid operation connection kill does not throw null exception.
Fixes for Node 6.0 support.
1.3.17 2016-04-26
Added improved handling of reconnect when topology is a single server.
Added better handling of $query queries passed down for 3.2 or higher.
Introduced getServerFrom method to topologies to let cursor grab a new pool for getMore and killCursors commands and not use connection pipelining.
NODE-693 Move authentication to be after ismaster call to avoid authenticating against arbiters.
1.3.16 2016-04-07
Only call unref on destroy if it exists to ensure proper working destroy method on early node v0.10.x versions.
1.3.15 2016-04-06
NODE-687 Fixed issue where a server object failed to be destroyed if the replicaset state did not update successfully. This could leave active connections accumulating over time.
Fixed some situations where all connections are flushed due to a single connection in the connection pool closing.
1.3.14 2016-04-01
Ensure server inquireServerState exits immediately on server.destroy call.
Refactored readPreference handling in 2.4, 2.6 and 3.2 wire protocol handling.
1.3.13 2016-03-30
Handle missing cursor on getMore when going through a mongos proxy by pinning to socket connection and not server.
1.3.12 2016-03-29
Mongos pickProxies fall back to closest mongos if no proxies meet latency window specified.
1.3.11 2016-03-29
isConnected method for mongos uses same selection code as getServer.
Exceptions in cursor getServer trapped and correctly delegated to high level handler.
1.3.10 2016-03-22
SDAM Monitoring emits diff for Replicasets to simplify detecting the state changes.
SDAM Monitoring correctly emits Mongos as serverDescriptionEvent.
1.3.9 2016-03-20
Removed monitoring exclusive connection, should resolve timeouts and reconnects on idle replicasets where haInteval > socketTimeout.
1.3.8 2016-03-18
Implements the SDAM monitoring specification.
Fix issue where cursor would error out and not be buffered when primary is not connected.
1.3.7 2016-03-16
Fixed issue with replicasetInquirer where it could stop performing monitoring if there was no servers available.
1.3.6 2016-03-15
Fixed raise condition where multiple replicasetInquirer operations could be started in parallel creating redundant connections.
Pool allocates size + 1 connections when using replicasets, reserving additional pool connection for monitoring exclusively.
Fixes bug when all replicaset members are down, that would cause it to fail to reconnect using the originally provided seedlist.
1.2.29 2015-12-17
Correctly emit close event when calling destroy on server topology.
1.2.28 2015-12-13
Backed out Prevent Maximum call stack exceeded by calling all callbacks on nextTick, (Issue #64, https://github.com/iamruinous) as it breaks node 0.10.x support.
1.2.27 2015-12-13
Added [options.checkServerIdentity=true] {boolean|function}. Ensure we check server identify during SSL, set to false to disable checking. Only works for Node 0.12.x or higher. You can pass in a boolean or your own checkServerIdentity override function, (Issue #29).
NODE-525 Reset connectionTimeout after it's overwritten by tls.connect.
NODE-518 connectTimeoutMS is doubled in 2.0.39.
1.2.8 2015-07-24
Minor fix to handle 2.4.x errors better by correctly return driver layer issues.
1.2.7 2015-07-16
Refactoring to allow to tap into find/getmore/killcursor in cursors for APM monitoring in driver.
1.2.6 2015-07-14
NODE-505 Query fails to find records that have a 'result' property with an array value.
1.2.5 2015-07-14
NODE-492 correctly handle hanging replicaset monitoring connections when server is unavailable due to network partitions or firewalls dropping packets, configureable using the connectionTimeoutMS setting.
1.2.4 2015-07-07
NODE-493 staggering the socket connections to avoid overwhelming the mongod process.
1.2.3 2015-06-26
Minor bug fixes.
1.2.2 2015-06-22
Fix issue with SCRAM authentication causing authentication to return true on failed authentication (Issue 26, https://github.com/cglass17).
1.2.1 2015-06-17
Ensure serializeFunctions passed down correctly to wire protocol.
1.2.0 2015-06-17
Switching to using the 0.4.x pure JS serializer, removing dependency on C++ parser.
Refactoring wire protocol messages to avoid expensive size calculations of documents in favor of writing out an array of buffers to the sockets.
NODE-486 fixed issue related to limit and skip when calling toArray in 2.0 driver.
NODE-483 throw error if capabilities of topology is queries before topology has performed connection setup.
NODE-487 fixed issue where killcursor command was not being sent correctly on limit and skip queries.
1.1.33 2015-05-31
NODE-478 Work around authentication race condition in mongos authentication due to multi step authentication methods like SCRAM.
Minor refactorings in cursor code to make extending the cursor simpler.
NODE-417 Resolution. Improving behavior of thrown errors using Error.captureStackTrace.
1.1.21 2015-03-26
Updated bson module to 0.3.0 that extracted the c++ parser into bson-ext and made it an optional dependency.
1.1.20 2015-03-24
NODE-395 Socket Not Closing, db.close called before full set finished initalizing leading to server connections in progress not being closed properly.
1.1.19 2015-03-21
Made kerberos module ~0.0 to allow for quicker releases due to io.js of kerberos module.
1.1.18 2015-03-17
Added support for minHeartbeatFrequencyMS on server reconnect according to the SDAM specification.
1.1.17 2015-03-16
NODE-377, fixed issue where tags would correctly be checked on secondary and nearest to filter out eligible server candidates.
1.1.16 2015-03-06
rejectUnauthorized parameter is set to true for ssl certificates by default instead of false.
1.1.15 2015-03-04
Removed check for type in replset pickserver function.
1.1.14 2015-02-26
NODE-374 correctly adding passive secondaries to the list of eligable servers for reads
1.1.13 2015-02-24
NODE-365 mongoDB native node.js driver infinite reconnect attempts (fixed issue around handling of retry attempts)
1.1.12 2015-02-16
Fixed cursor transforms for buffered document reads from cursor.
1.1.11 2015-02-02
Remove the required setName for replicaset connections, if not set it will pick the first setName returned.
1.1.10 2015-31-01
Added tranforms.doc option to cursor to allow for pr. document transformations.
1.1.9 2015-21-01
Updated BSON dependency to 0.2.18 to fix issues with io.js and node.
Updated Kerberos dependency to 0.0.8 to fix issues with io.js and node.
Don't treat findOne() as a command cursor.
Refactored out state changes into methods to simplify read the next method.
1.1.8 2015-09-12
Stripped out Object.defineProperty for performance reasons
Applied more performance optimizations.
properties cursorBatchSize, cursorSkip, cursorLimit are not methods setCursorBatchSize/cursorBatchSize, setCursorSkip/cursorSkip, setCursorLimit/cursorLimit
1.1.7 2014-18-12
Use ns variable for getMore commands for command cursors to work properly with cursor version of listCollections and listIndexes.
1.1.6 2014-18-12
Server manager fixed to support 2.2.X servers for travis test matrix.
1.1.5 2014-17-12
Fall back to errmsg when creating MongoError for command errors
1.1.4 2014-17-12
Added transform method support for cursor (initially just for initial query results) to support listCollections/listIndexes in 2.8.
Fixed variable leak in scram.
Fixed server manager to deal better with killing processes.
Bumped bson to 0.2.16.
1.1.3 2014-01-12
Fixed error handling issue with nonce generation in mongocr.
Fixed issues with restarting servers when using ssl.
Using strict for all classes.
Cleaned up any escaping global variables.
1.1.2 2014-20-11
Correctly encoding UTF8 collection names on wire protocol messages.
Added emitClose parameter to topology destroy methods to allow users to specify that they wish the topology to emit the close event to any listeners.
1.1.1 2014-14-11
Refactored code to use prototype instead of privileged methods.
Fixed issue with auth where a runtime condition could leave replicaset members without proper authentication.
Several deopt optimizations for v8 to improve performance and reduce GC pauses.
1.0.5 2014-29-10
Fixed issue with wrong namespace being created for command cursors.
1.0.4 2014-24-10
switched from using shift for the cursor due to bad slowdown on big batchSizes as shift causes entire array to be copied on each call.
1.0.3 2014-21-10
fixed error issuing problem on cursor.next when iterating over a huge dataset with a very small batchSize.
1.0.2 2014-07-10
fullsetup is now defined as a primary and secondary being available allowing for all read preferences to be satisfied.