[JAVA-4044] Exception when dropping a collection with changestream Created: 14/Mar/21 Updated: 28/Oct/23 Resolved: 24/Mar/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Change Streams |
| Affects Version/s: | 4.2.1, 4.2.2 |
| Fix Version/s: | 4.2.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Julien Buret | Assignee: | Valentin Kavalenka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Documentation Changes: | Not Needed | ||||||||
| Description |
|
When I create a ChangeStream (using Collection.watch() ) and then drop the collection, I get this stacktrace in 4.2.1 & 4.2.2 - no exception is present in 4.2.0:
ERROR reactor.core.publisher.Operators - Operator called default onErrorDropped |
| Comments |
| Comment by Githook User [ 05/Apr/21 ] |
|
Author: {'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}Message: Backport to 4.2.x
Ensures that all sessions are returned to the pool
Before the changes made within The approach with using startAtOperationTime to ensure that Co-authored-by: Ross Lawley <ross.lawley@gmail.com> |
| Comment by Valentin Kavalenka [ 24/Mar/21 ] |
|
Hi jburet. Thanks again for reporting this problem. We fixed it and the next driver version should not have the problem. |
| Comment by Githook User [ 24/Mar/21 ] |
|
Author: {'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}Message: Guarantee that ChangeStreamPublisher for a collection completes after dropping the collection (#689) Before the changes made within The approach with using startAtOperationTime to ensure that
|
| Comment by Valentin Kavalenka [ 16/Mar/21 ] |
|
Hi jburet, Thank you for reporting this change in behavior you observed. We will investigate it and come back to you with more details. |
| Comment by Julien Buret [ 14/Mar/21 ] |
|
digging a bit further, there is an exception in 4.2.0, but it is not the same. The real issue is that Subscriber.onError is called in 4.2.0 but not anymore in 4.2.1 & 4.2.2 . May be this is WAD?
The exception in 4.2.0:
ERROR reactor.core.publisher.Operators - Operator called default onErrorDropped |