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

BSON field '$changeStream.maxAwaitTimeMS' is an unknown field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc1
    • Affects Version/s: 0.3.0
    • Component/s: None
    • Labels:
      None

      I could be doing something wrong, but it appears that the maxAwaitTimeMS on a change stream is not always getting converted to maxTimeMs before being sent on the wire.  

      var stream *mongo.ChangeStream
       opts := options.ChangeStream()
       opts.SetMaxAwaitTime(time.Duration(10) * time.Second)
       opts.SetFullDocument(options.UpdateLookup)
       opts.SetStartAtOperationTime(startAt)
       c := client.Database("test").Collection("test")
       stream, err = c.Watch(context.Background(), pipeline, opts)

      With SetMaxAwaitTime applied I get the following error: 

      BSON field '$changeStream.maxAwaitTimeMS' is an unknown field

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            ryan.m.wynn@gmail.com Ryan Wynn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: