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

Properly implement maxAwaitTimeMS

    XMLWordPrintableJSON

Details

    Description

      The maxAwaitTimeMS option is broken for change streams and is not properly implemented for find options. It doesn't exist at all for aggregate options which needs to support maxAwaitTimeMS since $changeStream returns a tailableawait cursor.

      The current cursor implementation needs to be augmented with the ability to take a maxAwaitTime parameter, and that parameter needs to be sent on getMore requests when set. Additionally, the OptMaxAwaitTime option should implement the AggregateOptioner interface. Finally, when the Watch or a find or aggregate method receives an OptMaxAwaitTIme, it should not send it on the initial request and instead hold it and use that value when creating the cursor.

      Attachments

        Activity

          People

            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: