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

Investigate why change_streams/shell_helper.js fails when run against a sharded cluster

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      Currently, this part in shell_helpers.js is not run against sharded cluster since this assertion is expected to fail. On a sharded cluster, changeStreamCursor.objsLeftInBatch() is expected to be 0 because of how router getMore command doesn't respect batchSize (this comment references SERVER-31992). However, based on the comment, if we do assert(changeStreamCursor.hasNext()); right before that assertion, the entire part should technically succeed. However, based on local testing, this assertion fails, i.e. the change stream only returns 4 docs although there are 5 updates. 

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: