[JAVA-2673] AggregateToCollectionThenFindOperation casting issue Created: 22/Nov/17 Updated: 14/Sep/23 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Async |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
AggregateToCollectionThenFindOperation casts an AsyncReadBinding to an AsyncWriteBinding to handle Aggregations with $out and none inline MapReduces. It is a safe cast currently but the aim is to refactor and remove the code smell. |
| Comments |
| Comment by Jeffrey Yemin [ 31/Jan/18 ] |
|
Note that the offensive smell is now in the com.mongodb.async.client.WriteOperationThenCursorReadOperation class after an unrelated refactoring. |