[JAVA-3407] Async change stream cursor should protect against multiple calls to close Created: 27/Aug/19 Updated: 28/Oct/23 Resolved: 03/Sep/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Async |
| 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 |
|
AsyncChangeStreamBatchCursor#close doesn't protect against being called multiple times, which on the second invocation results in an extra release of the AsyncReadBinding.
The close method should be protected, as it is in the synchronous driver |
| Comments |
| Comment by Githook User [ 10/Oct/19 ] |
|
Author: {'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}Message: Protect AsyncChangeStreamBatchCursor against multiple calls to close
|
| Comment by Githook User [ 03/Sep/19 ] |
|
Author: {'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}Message: Protect AsyncChangeStreamBatchCursor against multiple calls to close
|
| Comment by Jeffrey Yemin [ 29/Aug/19 ] |
|
Removed from epic since this is existing behavior. |