The MongoDB Go Driver Team is pleased to release version 1.15.0 of the official Go driver.
Release Notes
This release adds a feature that can prevent "connection churn" caused by operation timeouts.
Prevent "Connection Churn" Caused by Timeouts
Previously, the Go Driver would close the in-use connection when an operation timed out. However, closing the in-use connection can cause significant additional application and database load if many timeouts happen quickly, potentially causing "connection churn" that can exacerbate latency issues. The Go Driver now offers a new feature that waits (for a maximum of 1 second) for the connection to be reusable after an operation times out instead of closing it.
To enable the new feature, set a Client
-wide timeout by using SetTimeout or by specifing the timeoutMS
connection string option. Use SetTimeout(0)
or timeoutMS=0
to enable the new feature without adding new timeouts. See SetTimeout for more information about the Client
-wide timeout configuration.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.14.0...1.15.0
Documentation for the Go driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. Questions and inquiries can be asked on the MongoDB Developer Community. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the Go driver is greatly appreciated!