[GODRIVER-876] findOne can fail to return Created: 13/Mar/19  Updated: 14/Mar/19  Resolved: 14/Mar/19

Status: Closed
Project: Go Driver
Component/s: BSON, Core API, Error Handling
Affects Version/s: 0.3.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matthew Nolf Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

running mongo:3.6-stretch in docker
go version go1.11.5 darwin/amd64
mongo driver github.com/mongodb/mongo-go-driver v0.3.0


Issue Links:
Duplicate
duplicates GODRIVER-877 FindOne() nondeterministically return... Closed

 Description   

Calling FindOne() sometimes returns a empty singleResult, which causes Decode() to return an ErrNoDocuments

This seems to be nondeterministic, occuring raround 10% of the time.

The remaining 90% of the time, findOne() successfully decodes the expected document from the collection and no errors.

 

 

 

db.mycollection.findOne({"address":

{"first_line": "expected_first_line", "second_line" : "expected_second_line"}

} )

 



 Comments   
Comment by Jeffrey Yemin [ 14/Mar/19 ]

Looks like this duplicates GODRIVER-877.

Generated at Thu Feb 08 08:35:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.