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

OperationIterable.forEach/first should close the MongoCursor in a finally block

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.3, 3.1.0
    • Affects Version/s: 3.0.0, 3.0.2
    • Component/s: Query Operations
    • None

      OperationIterable.forEach and OperationIterable.first could leave the cursor open in the face of an exception thrown from Block.apply. It should ensure that the cursor is closed in a finally block

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

              Created:
              Updated:
              Resolved: