Add new failpoint to support driver testing of ResumableChangeStreamError label

XMLWordPrintableJSON

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

      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
              Reporter:
              Bernard Gorman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: