findOne can fail to return

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Matthew Nolf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: