[JAVA-2977] Observable race condition calling onComplete Created: 14/Sep/18  Updated: 28/Oct/23  Resolved: 18/Sep/18

Status: Closed
Project: Java Driver
Component/s: Async
Affects Version/s: None
Fix Version/s: 3.8.2, 3.9.0

Type: Bug Priority: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

A race condition has been identified where results are returned to the callback, completed is set to true and a call to request(n) comes in on another thread at the same time that calls onComplete before the callback result is passed to onNext.



 Comments   
Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Fix Observables queuing & request race condition

JAVA-2977
Branch: 3.8.x
https://github.com/mongodb/mongo-java-driver/commit/5a024f8ed5752fd621f245020344ca1638d2a26c

Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Fix Observables queuing & request race condition

JAVA-2977
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/29a54450393b59b2cfae23c887357235aa9e00f4

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