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

Propagate the batch size in ChangeStreamPublisherImpl.withDocumentClass

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Reactive Streams
    • None
    • Fully Compatible
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: