Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-876

findOne can fail to return

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.3.0
    • Component/s: BSON, Core API, Error Handling
    • None
    • 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

      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"}

      } )

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthewnolf Matthew Nolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: