[JAVA-1571] Handle asynchronous aggregate/mapreduce to a collection Created: 26/Nov/14 Updated: 31/Mar/15 Resolved: 23/Dec/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
There is currently a race condition because the aggregate/mapreduce is asynchronously executed but then a MongoIterable on the collection the results are being written to is returned immediately |
| Comments |
| Comment by Jeffrey Yemin [ 31/Mar/15 ] |
|
Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released. |
| Comment by Githook User [ 30/Jan/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added aggregateToCollection and mapReduceToCollection methods to async MongoCollection API to support |
| Comment by Githook User [ 30/Jan/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added AwaitingWriteOperationIterable to handle race condition when asynchronously aggregating or reducing to a collection |
| Comment by Githook User [ 23/Dec/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added aggregateToCollection and mapReduceToCollection methods to async MongoCollection API to support |
| Comment by Githook User [ 23/Dec/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added aggregateToCollection and mapReduceToCollection methods to async MongoCollection API to support |
| Comment by Githook User [ 23/Dec/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Added AwaitingWriteOperationIterable to handle race condition when asynchronously aggregating or reducing to a collection |
| Comment by Jeffrey Yemin [ 01/Dec/14 ] |
|
Yes, I'm aware. |
| Comment by Ross Lawley [ 01/Dec/14 ] |
|
Thats what we did do - but the api becomes unwieldly, so it was reverted. |
| Comment by Jeffrey Yemin [ 01/Dec/14 ] |
|
I think that we have to take a callback here, at least for $out. Otherwise there is no way for the user to know when a $out aggregation completed except by starting to iterate through the results. |