[JAVA-2566] Include empty cursor document in $out aggregate command sent to a 3.6 MongoDB server Created: 27/Jul/17  Updated: 29/Oct/23  Resolved: 29/Jul/17

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: None
Fix Version/s: 3.4.3

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

MongoDB 3.6 requires a cursor document in the aggregate command, even if the last stage is a $out. The driver currently never includes a cursor document in this situation, resulting in a server error being returned and an exception thrown. There is no workaround.

While this problem has been fixed in the 3.5 release as part of JAVA-2442, the commit for that includes an API change that is not appropriate for a patch release. This issue is tracking a backport of just the change required to fix $out.



 Comments   
Comment by Githook User [ 29/Jul/17 ]

Author:

{'email': 'jeff.yemin@10gen.com', 'username': 'jyemin', 'name': 'Jeff Yemin'}

Message: JAVA-2566: Include empty cursor document in AggregateToCollectionOperation when connected to a 3.6 MongoDB server
Branch: 3.4.x
https://github.com/mongodb/mongo-java-driver/commit/10cbc15534fe88335b7782522b134ffdb8abf67d

Generated at Thu Feb 08 08:57:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.