...
When running the TestCollection_InsertMany_Batches unit test the Go driver returns the following error: mongo.BulkWriteError{WriteErrors:mongo.WriteErrors{mongo.WriteError{Index:0, Code:9001, Message:"Write results unavailable from localhost:27026 :: caused by :: asio.ssl stream truncated"}}, WriteConcernError:(*mongo.WriteConcernError)(nil)} This only occurs when for that test and the remainder of the tests pass. This only occurs on macOS.
xgen-internal-githook commented on Fri, 18 Jan 2019 19:52:29 +0000: Author: {'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'} Message: SERVER-35393 Flush asio output and limit SecureTransport out buffer (cherry picked from commit 573ebb251784aa7665b978ca386b60799d74c878) Branch: v4.0 https://github.com/mongodb/mongo/commit/785e8eaba42b3cafb4f1da227fea706cd5b172b7 kris.brandow commented on Fri, 11 Jan 2019 21:55:13 +0000: Just tested a patch with this and it fixes both the issue we raised and another issue that just came up. xgen-internal-githook commented on Fri, 11 Jan 2019 16:47:34 +0000: Author: {'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'} Message: SERVER-35393 Flush asio output and limit SecureTransport out buffer Branch: master https://github.com/mongodb/mongo/commit/573ebb251784aa7665b978ca386b60799d74c878 xgen-internal-githook commented on Thu, 3 Jan 2019 21:52:40 +0000: Author: {'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'} Message: Revert "SERVER-35393 Flush output buffer before attempting new writes" This reverts commit 99ac27f83e67aca7e9244c3aadb3026492e45da3. Branch: master https://github.com/mongodb/mongo/commit/f27c375287f7c69067d5ba437533622dbecf41c9 xgen-internal-githook commented on Fri, 14 Dec 2018 14:32:21 +0000: Author: {'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'} Message: SERVER-35393 Flush output buffer before attempting new writes Branch: master https://github.com/mongodb/mongo/commit/99ac27f83e67aca7e9244c3aadb3026492e45da3
Clone the Go driver (this bug has been reproduced using commit aa7785b39743c6e7c034dc5b25d9a6f84cdd0785) Spin up a sharded cluster with SSL and Auth. There is a CA certificate under the data/certificates directory that can be used. This bug was reproduced on the 4.0.0-rc1 release of mongodb. cd into the mongo directory of the Go driver Run go test (replace the username and password in the MONGODB_URI): MONGO_GO_DRIVER_CA_FILE=~/src/github.com/mongodb/mongo-go-driver/data/certificates/ca.pem AUTH=auth TOPOLOGY=sharded_cluster SSL=ssl MONGODB_URI=mongodb://[username]:[password]@localhost:27017 EVR_TASK_ID=12345 go test -v -run "TestCollection_InsertMany_Batches" The error in the description should be returned.