-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.0
-
Component/s: Aggregation Framework
-
None
-
ALL
-
Let us have two collections, COL1 and COL2.
Let's assume COL1 has many documents.
If we aggregate COL1 and end it with an $out operation to COL2,
while in parallel we aggregate (over and over again for the purpose of this demonstration) over COL2, at the moment that COL2 is rebuilt (the moment that the aggregation over COL1 with the $out has ended) - the aggregation over COL2 will fail.
The exception raised in the code I have given below is:
OperationFailure: Error in $cursor stage :: caused by :: all indexes on collection dropped
I have tested this with a mongo 4.0.0 instance inside a docker on a Windows 10 machine.
- related to
-
SERVER-36918 Searching on a collection that is rebuilt using $out will sometimes raise an exception
- Closed