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

Include empty cursor document in $out aggregate command sent to a 3.6 MongoDB server

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.3
    • Affects Version/s: None
    • Component/s: Write Operations
    • None

      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.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: