Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3329

Driver still tries to resume change streams after encountering NonResumableChangeStreamError

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.1
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      I noticed while running the test added via SPEC-1214 that mongoc seemed to still attempt resuming - using command monitoring I saw the following order of events:

      • successful aggregate
      • a successful insert
      • a failed getMore
      • a successful killCursors
      • a failed aggregate

      Looking at mongoc-change-stream.c, I believe this is because the code here checks for "NonRetryableChangeStreamError" rather than "NonResumableChangeStreamError".

      I think this mistake occurred because the original commit for SPEC-1214 wrongly used "retryable" in the .rst file. This was corrected in a subsequent commit under the same ticket number.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: