Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48609

ChangeStreamTest.assertChangeStreamThrowsCode should run getMore repeatedly

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • v4.4
    • Query 2020-06-15
    • 16

    Description

      The ChangeStreamTest.assertChangeStreamThrowsCode function expects to see a specific error code upon starting a change stream, but it only runs the initial aggregate and a single getMore before giving up. In a sharded cluster, it is conceivable that the exception will not be seen on the first getMore. We should run getMore in an assert.soon loop to ensure that we do not produce any false negatives.

      Attachments

        Activity

          People

            bernard.gorman@mongodb.com Bernard Gorman
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: