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

Unable to get change stream data when using hasNext()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 4.2.12
    • None
    • ALL

    Description

      We set the oplog space size to 50GB, and our data size is about 9000W. We keep the resumeToken in memory, we also use hasNext() and next() to get the change stream data. When a large amount of data is updated, it blocks in the hasNext() method and cannot return true or false, so next() could not execute. But when mongo client is restarted, hasNext() will not block with the same resumeToken. Why are we blocking in the hasNext() method?

      Attachments

        Activity

          People

            eric.sedor@mongodb.com Eric Sedor
            che302@qq.com chen liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: