[JAVA-4788] Reactor Context loss in BatchCursorFlux Created: 21/Oct/22 Updated: 28/Oct/23 Resolved: 03/Nov/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Reactive Streams |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mark Paluch | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
| Comments |
| Comment by Githook User [ 03/Nov/22 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Ensure reactor context is passed to any child BatchCursor Mono/Flux
|
| Comment by Ross Lawley [ 21/Oct/22 ] |
|
Interesting, the migration to using Project Reactor in the driver essentially treated Mono's as just Publishers, so unfortunately, there could be a number of places where the context is not passed. That said the driver generally doesn't subscribe / consume its own Publishers - batch cursors / cursors are definitely one place where there is the need for a async flatmap and custom subscription.
Yeah, agreed Ross |