Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4010

Propagate the batch size in ChangeStreamPublisherImpl.withDocumentClass

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.0
    • None
    • Reactive Streams
    • None
    • Fully Compatible
    • Not Needed

    Description

      BatchCursorFlux respects the batch size of its BatchCursorPublisher if any is specified (see BatchCursorFlux.calculateBatchSize). Currently the method ChangeStreamPublisherImpl.withDocumentClass creates a new BatchCursorPublisher but does not propagate its batch size (if specified) to the created BatchCursorPublisher.

      I discovered this while trying to run poc-change-streams.json (POC unified tests) with a reactive driver.

      Attachments

        Activity

          People

            valentin.kovalenko@mongodb.com Valentin Kavalenka
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: