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

findOne can fail to return

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 0.3.0
    • BSON, Core API, Error Handling
    • None
    • 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

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

      } )

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: