[JAVA-3442] ChangeStreamBatchCursor#close should be a no-op after first call Created: 20/Sep/19  Updated: 28/Oct/23  Resolved: 10/Oct/19

Status: Closed
Project: Java Driver
Component/s: Change Streams
Affects Version/s: None
Fix Version/s: 3.11.1

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ChangeStreamBatchCursor#close should protect against multiple invocations by only calling release on its ClientSession on the first call.



 Comments   
Comment by Githook User [ 10/Oct/19 ]

Author:

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

Message: Make ChangeStreamBatchCursor#close idempotent

JAVA-3442
Branch: 3.11.x
https://github.com/mongodb/mongo-java-driver/commit/59b94e08d2058d51cc732cccdf09038a704b71d9

Comment by Githook User [ 10/Oct/19 ]

Author:

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

Message: Make ChangeStreamBatchCursor#close idempotent

JAVA-3442
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/314f9b963f54c6c199e26b982caa181f12dc7a24

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