Changelog History
Page 3
-
v1.1.2 Changes
October 07, 2019๐ The MongoDB Go driver team is pleased to release 1.1.2 of the official Go driver.
๐ This release contains several bug fixes.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- [GODRIVER-1245] - Transactions Bugs
- [GODRIVER-1292] - ListCollectionNames does not appear to close the cursor it creates
- [GODRIVER-1298] - Panic in topology/pool.go:416
- [GODRIVER-1301] - Data race around topology subscription
- [GODRIVER-1302] - Topology.String should take {{serversLock}}
- [GODRIVER-1311] - Running v1.1.0+ against mongot doesn't work
- ๐ [GODRIVER-1322] - operations bug fixes
- [GODRIVER-1323] - Cleanup connection close logic
- [GODRIVER-1324] - Can't insert 16 MiB documents
- [GODRIVER-1325] - Getting a new Database from mongo.Client does not honor a Registry from DatabaseOptions
-
v1.1.1 Changes
September 05, 2019๐ The MongoDB Go driver team is pleased to release 1.1.1 of the official Go driver.
๐ This release contains several bug fixes.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
Backport
- ๐ [GODRIVER-1290] - Backport "Deadlock on 1.1.0 release"
๐ Bug
- [GODRIVER-1011] - Struct decoder only works for lowercased fields
- [GODRIVER-1233] - Truncate Bug
- [GODRIVER-1238] - Closing a change stream without reading it returns an error
- [GODRIVER-1239] - mongo.Client's Ping method ignores read preference
- [GODRIVER-1245] - Transactions Bugs
- [GODRIVER-1246] - Cursor.All() should end implicit session
- [GODRIVER-1247] - connection leak with change stream
-
v1.1.0 Changes
August 13, 2019๐ The MongoDB Go driver team is pleased to release 1.1.0 of the official Go driver.
๐ This release contains support for MongoDB server version 4.2.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
Core Driver Redesign
๐ The lower-level driver implementation was redesigned. The improved lower-level driver contained improvements to increase maintainability and greatly increase performance.
Connection Pool Monitoring
The Connection Monitoring and Pooling specification has been implemented. This changes the pool implementation to LIFO, which improves connection utilization. The addition of
event.PoolMonitor
enables users to monitor various connection and connection pool related events.๐ Release Notes
๐ Bug
- [GODRIVER-1018] - record codeName for WriteConcernErrors
- [GODRIVER-1073] - ChangeStream spec's Resumable Error definition is too broad
- โ [GODRIVER-1084] - Data race in topology tests
- โ [GODRIVER-1085] - Change stream test failures on Evergreen
- [GODRIVER-1100] - Closing batch cursor after find gets "ended session was used"
- [GODRIVER-1107] - SetHint causes InvalidBSON error
- [GODRIVER-1108] - Operation.addReadConcern encodes "empty" ReadConcern
- [GODRIVER-1114] - RunCommandCursor always fails and returns an error message referencing internal driver details
- ๐ [GODRIVER-1130] - Pinned Servers should be cleared properly
- [GODRIVER-1153] - nil pointer asMDoc
- [GODRIVER-1160] - driver.BatchCursor Next returns true when first batch is empty
- [GODRIVER-1187] - Find() uses a write selector instead of a read selector
- ๐ [GODRIVER-1215] - lastWriteDate is parsed from isMaster incorrectly
- [GODRIVER-1224] - Race detected in x/mongo/driver/topology
- 0๏ธโฃ [GODRIVER-1226] - localThresholdMS does not default to 15 ms
๐ New Feature
- [GODRIVER-620] - Implement Unified URI Options
- [GODRIVER-621] - Implement Convenient API for Transactions
- [GODRIVER-622] - Implement Connection Monitoring and Pooling spec
- ๐ [GODRIVER-623] - Support mongos pinning for sharded transactions
- [GODRIVER-624] - Retryable Reads
- ๐ [GODRIVER-625] - Support polling SRV records for mongos discovery
- [GODRIVER-628] - Connections survive primary stepdown
- ๐ [GODRIVER-637] - Support sharded transactions recovery token
- ๐ [GODRIVER-680] - Support running commands as aggregation
- โ [GODRIVER-690] - Transaction test runner should use "local" read concern when asserting the final collection state
- [GODRIVER-723] - Missing ListCollectionNames
- [GODRIVER-736] - Add comparison methods to primitive.Timestamp
- โ [GODRIVER-745] - Resync change stream tests to test all new notification types
- ๐ [GODRIVER-765] - Support 'startAfter' option to the $changeStream stage
- ๐ [GODRIVER-808] - Add support for Split-Horizon Topology
- 0๏ธโฃ [GODRIVER-822] - Support Retryable Writes on by Default
- ๐ [GODRIVER-824] - Support postBatchResumeToken in change streams
- โ [GODRIVER-841] - Resync SDAM tests to only examine non-unknown server descriptions to determine incompatibility
- ๐ [GODRIVER-845] - Add support for majority read concern level to Aggregation $out
- [GODRIVER-913] - countDocuments should use group with _id: 1
- [GODRIVER-916] - Cursor method to decode all results into a slice
- โก๏ธ [GODRIVER-919] - Add the ability to specify a pipeline to an update command
- ๐ฆ [GODRIVER-927] - Create new driver package
- โก๏ธ [GODRIVER-928] - Update topology.Topology type
- [GODRIVER-929] - Create topology.pool type
- [GODRIVER-930] - Implement base driver.Connection type
- [GODRIVER-931] - Implement topology.legacyConnection type
- โก๏ธ [GODRIVER-932] - Update topology.Server type
- [GODRIVER-978] - Implement driver.Operation
- ๐ [GODRIVER-984] - Add support for legacy find, getMore, and killCursors to driver.Operation
- [GODRIVER-985] - Design & Implement drivergen
- [GODRIVER-992] - Add compression to driver.Operation
- [GODRIVER-993] - Add command monitoring to driver.Operation
- [GODRIVER-1081] - Allow applications to set maxTimeMS for commitTransaction
- [GODRIVER-1209] - Create LocalAddresser interface and make topology.Connection implement it
- ๐ [GODRIVER-1219] - Raise an actionable error message when retryWrites fails due to using an unsupported storage engine
Task
- [GODRIVER-589] - Bump wire protocol version for 4.2
- โ [GODRIVER-968] - Add tests for postBatchResumeToken support
- โ [GODRIVER-969] - Test writes in transactions do not send writeConcern when collection write concern is w=0
- โ [GODRIVER-970] - Amend change stream missing resume token tests for wire version 8+
- [GODRIVER-1009] - Implement batch cursor in driver lib
- [GODRIVER-1015] - Set OP_MSG flags in driver.Operation
- [GODRIVER-1026] - Skip ReadWireMessage for unacknowledged writes
- ๐ [GODRIVER-1035] - Clear pinned server on TransientTransactionError
- [GODRIVER-1043] - Generate AbortTransaction operation
- [GODRIVER-1044] - Generate CommitTransaction operation
- [GODRIVER-1045] - Generate CreateIndexes operation
- [GODRIVER-1046] - Generate Delete operation
- [GODRIVER-1047] - Generate Distinct operation
- [GODRIVER-1048] - Generate DropCollection operation
- [GODRIVER-1049] - Generate DropDatabase operation
- [GODRIVER-1050] - Generate DropIndexes operation
- [GODRIVER-1051] - Generate EndSessions operation
- [GODRIVER-1052] - Generate FindAndModify operation
- [GODRIVER-1053] - Generate ListDatabases operation
- โก๏ธ [GODRIVER-1054] - Generate Update operation
- [GODRIVER-1055] - Generate Aggregate operation
- [GODRIVER-1056] - Generate ListIndexes operation
- [GODRIVER-1057] - Change RunCommand and RunCommandCursor to use operation.Command
- [GODRIVER-1070] - Change Collection.Find to use FindOperation
- [GODRIVER-1071] - Change Collection.InsertMany to use InsertOperation
- โก๏ธ [GODRIVER-1127] - Finer-grained updates from aggregation via $merge
- โ [GODRIVER-1146] - Add mongodb+srv URIs to Atlas Connectivity tests
- [GODRIVER-1149] - Migrate CountDocuments to new aggregate
- [GODRIVER-1150] - Generate Count operation
- [GODRIVER-1162] - Create a Connection interface that allows connections to be forcibly expired
- โก๏ธ [GODRIVER-1164] - Update change stream docs example for resume token access
- โ [GODRIVER-1192] - Make transactions tests run faster on replica sets
- โก๏ธ [GODRIVER-1231] - update doesn't handle bson.Raw correctly
๐ Improvement
- โ [GODRIVER-145] - Automate Atlas connectivity tests
- [GODRIVER-447] - Only send bypassDocumentValidation if it's true
- โก๏ธ [GODRIVER-512] - Update ChangeStream tests for 4.1.1 "drop" notifications
- [GODRIVER-705] - Add an alias in bsoncore for an Array
- [GODRIVER-755] - Add background goroutine per server to close expired, idle connections
- ๐ [GODRIVER-810] - Remove topology.Topology.registry field
- โฌ๏ธ [GODRIVER-864] - Upgrade testing to go 1.12
- ๐ [GODRIVER-906] - Support wildcardProjection index option
- ๐ฆ [GODRIVER-955] - Move packages under x/mongo/driverlegacy under x/mongo/driver
- ๐ [GODRIVER-994] - Remove legacy network library code
- [GODRIVER-1042] - Don't add read preference for non-mongos server with OP_QUERY
- ๐ [GODRIVER-1060] - Do not send client metadata on regular operation.IsMaster.Execute invocations
- [GODRIVER-1065] - Generate ListCollections operation
- [GODRIVER-1075] - Call SingleResult.setRdrContents() in SingleResult.Err() to return correct error
- [GODRIVER-1080] - Discard ServerSessions involved in network errors
- ๐ [GODRIVER-1083] - Documentation for countDocuments MUST mention estimatedDocumentCount
- ๐จ [GODRIVER-1094] - Refactor templates in drivergen
- [GODRIVER-1099] - Change RetryType to Type
- [GODRIVER-1103] - Migrate bulkWrite to core API
- [GODRIVER-1124] - Don't send $readPreference to standalone servers
- โ [GODRIVER-1155] - Change chunk size in GridFS tests
- [GODRIVER-1163] - Retrieve a batch cursor from a cursor
- [GODRIVER-1173] - Add connected status to connection to avoid race conditions
-
v1.0.4 Changes
July 09, 2019๐ The MongoDB Go driver team is pleased to release version 1.0.4 of the official Go driver.
๐ This release contains several bug fixes. Please refer to the Jira issues below for more information.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- [GODRIVER-1013] - When reading whole file at once next read doesn't return EOF
- [GODRIVER-1096] - When limit is set with a BatchCursor connected to a legacy server, a connection is leaked
- [GODRIVER-1131] - QueryFailureError not wrapped in CommandError
- [GODRIVER-1132] - Legacy ListCollections in driverlegacy does not filter indexes
๐ Improvement
- [GODRIVER-1021] - Specify behavior where connection string contain auth database but no credentials
-
v1.0.3 Changes
June 06, 2019๐ The MongoDB Go driver team is pleased to release version 1.0.3 of the official Go driver.
๐ This release contains several bug fixes. Please refer to the Jira issues below for more information.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- [GODRIVER-1012] - Downloading big files from gridfs ends with ErrWrongSize
- [GODRIVER-1016] - Get current op on MongoDB 2.6
- [GODRIVER-1068] - Need to call ping in Ping()
- [GODRIVER-1078] - Allow specifying empty value for connection URI readPreferenceTags option
- ๐ [GODRIVER-1086] - Can leak creds through errors from URI Parsing
-
v1.0.2 Changes
May 16, 2019๐ The MongoDB Go driver team is pleased to release version 1.0.2 of the official Go driver.
๐ This release contains several bug fixes. Please refer to the Jira issues below for more information.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- ๐ [GODRIVER-867] - options.FindOptions.SetLimit() docs suggest negative limits are still supported, but they're not
- [GODRIVER-975] - bulk write doesn't report write concern error
- ๐ [GODRIVER-983] - extjson date parser doesn't work for dates after the year 2262
- [GODRIVER-989] - ChangeStream Next nil Pointer Dereference
- [GODRIVER-1005] - Decoding SingleResult or cursor to nil pointer type panics
๐ Improvement
- [GODRIVER-1004] - SingleResult.Decode only works once
-
v1.0.1 Changes
April 18, 2019๐ The MongoDB Go driver team is pleased to release version 1.0.1 of the official Go driver.
๐ This release fixes a race condition in handshaking, panics in GridFS, and improves documentation. Additionally, some small API changes have been made.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- [GODRIVER-809] - Go driver cannot decode gridfs files collection documents if the length field is not stored as int64
- [GODRIVER-880] - Cannot query when having a regular expression in MongoDB Document
- [GODRIVER-881] - ObjectID should be quoted in bsoncore.Value's String() method
- 0๏ธโฃ [GODRIVER-884] - Default for timestamps is a zero'd *time.Location, instead of
nil
- [GODRIVER-886] - Panic when passing non-ObjectID file ID to bucket.OpenDownloadStream
- ๐ [GODRIVER-887] - Panic when passing in UploadOptions with Metadata but no Registry to bucket.OpenUploadStream
- [GODRIVER-888] - GoDoc out of date for cursor example
- [GODRIVER-893] - bsonrw.valueReader skip does not properly skip regular expressions
- โก๏ธ [GODRIVER-898] - Topology should synchronously update ServerDescriptions
- [GODRIVER-900] - Server string representation typo: Avergage RTT
- [GODRIVER-901] - Race detector flagged race
- ๐ [GODRIVER-908] - options.MergeClientOptions doesn't handle errors properly
- [GODRIVER-910] - panic when calling Watch on a Client that has not been connected
- [GODRIVER-956] - Legacy Find is not respecting limit
๐ New Feature
- [GODRIVER-873] - BulkWriteResult from BulkWrite doesn't have errors in unordered bulk
๐ Improvement
- โฌ๏ธ [GODRIVER-864] - Upgrade testing to go 1.12
- ๐ณ [GODRIVER-896] - Document Docker DNS issue
-
v1.0.0 Changes
March 13, 2019๐ The MongoDB Go driver team is pleased to release version 1.0.0 of the official Go driver.
๐ This release fixes retryable writes for batch split write commands and fixes documentation errors.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
๐ Release Notes
๐ Bug
- [GODRIVER-871] - Retryable Writes is broken for batch splits
๐ New Feature
- [GODRIVER-790] - Drivers should use majority write concern when retrying commitTransaction
- โ [GODRIVER-844] - Resync transaction spec tests for bulk write error reporting change
-
v1.0.0-rc2 Changes
March 07, 2019๐ The MongoDB Go driver team is pleased to release v1.0.0-rc2 of the official Go driver.
๐ This release fixes zlib compression and contains several smaller bug fixes.
๐ Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
Using Dep
๐ If you are using
dep
to retrieve the Go driver, please ensure that dep has pinned the correct version. Thedep
tool prefers released versions over pre-release versions, so it is likely thatdep
will retrieve version0.3.0
instead of1.0.0-rc2
. You can use the command below to retrieve the correct version.dep ensure -add "go.mongodb.org/mongo-driver/mongo@\>=1.0.0-rc1"
๐ Release Notes
๐ Bug
- [GODRIVER-836] - zLib compression does not work
- ๐ [GODRIVER-840] - Docs out of date for how to connect
- [GODRIVER-848] - bson can not marshal datetime ISODate json correct
- [GODRIVER-856] - Chunks collection files_id_1_n_1 index not unique
๐ New Feature
- ๐ [GODRIVER-698] - Support for GSSAPI "ServiceHost"