Fix condition that determines when changeStreamSource is idle

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Atlas Streams
    • Fully Compatible
    • ALL
    • Sprint 65, Sprint 66, Sprint 67
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We mark the source as idle based on this check:

      if (!changeEvent && !eventResumeToken) {
        _isIdle.store(true);        
        return false;    
      }

      However, eventResumeToken will always be non-null since the underlying _change_stream_ object will always return the last resumeToken it has.

      This check needs to be enhanced so that it does a comparison between the currently obtained resumeToken and the previously obtained value and that decides if we have a "new" resumeToken or not.

            Assignee:
            Guy-Jacques Isombe
            Reporter:
            Mayuresh Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: