[JAVA-4010] Propagate the batch size in ChangeStreamPublisherImpl.withDocumentClass Created: 11/Feb/21 Updated: 28/Oct/23 Resolved: 21/Jun/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Reactive Streams |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Valentin Kavalenka | Assignee: | Valentin Kavalenka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Documentation Changes: | 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. |
| Comments |
| Comment by Githook User [ 21/Jun/21 ] |
|
Author: {'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}Message: Propagate the batch size in ChangeStreamPublisherImpl.withDocumentClass (#664) Propagate the batch size in `ChangeStreamPublisherImpl.withDocumentClass` Co-authored-by: Ross Lawley <ross.lawley@gmail.com> |