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

Add new failpoint to support driver testing of ResumableChangeStreamError label

    • Fully Compatible
    • v4.2
    • Query 2020-02-24

      Driver tests designed to exercise the ResumableChangeStreamError label introduced in SERVER-45505 will need to use a failpoint to induce the desired exceptions. However, for getMore commands, the existing generic failCommand failpoint runs too early in the command path, long before the getMore has checked out its cursor and set CurOp::_originatingCommand. The error label code therefore cannot determine that this cursor is a change stream, and will not attach the error label.

      We should add a new failGetMoreAfterCursorCheckout failpoint to support these tests.

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

              Created:
              Updated:
              Resolved: