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

endSessions batching must reset BSON array index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.3.2
    • None
    • None
    • None

    Description

      When we batch sessions for the endSessions command, the BSON array we generate after the first batch does not have indexes starting from 0. This causes a server error. Per the spec, we ignore errors for endSessions and I don't think we have tests that cause more than 10000 sessions to be pooled so this is missing test coverage.

       

      Writing a test in mongo/integration would be expensive because we'd need to create 10k sessions, but we can write a test in mongo to manually reduce the batch size and use command monitoring to make assertions.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: