Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35393

Go Driver Unit Tests receive error code 9001 when doing a large insert many

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.6, 4.1.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Hide
      1. Clone the Go driver (this bug has been reproduced using commit aa7785b39743c6e7c034dc5b25d9a6f84cdd0785)
      2. 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.
      3. cd into the mongo directory of the Go driver
      4. 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"
        
      5. The error in the description should be returned.
      Show
      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.
    • Security 2018-10-08, Security 2018-10-22, Security 2018-11-05, Security 2018-11-19, Security 2018-12-03, Security 2018-12-17, Security 2018-12-31, Security 2019-01-14
    • 0

      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.

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: