Fix bug around exceptions from restoreState() in DocumentSourceCursor and add unit tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: Query Execution
    • None
    • Query Execution
    • Fully Compatible
    • v8.1
    • QE 2025-04-14
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      DocumentSourceCursor is rather difficult to unit test, and as discussed in SERVER-102713, it has a bug around how it deals with exceptions from storage. This area has been buggy enough we may as well invest the time in making it more unit testable so we can better test it and completely avoid bugs like this in the future.

            Assignee:
            Ian Boros
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: