SERVER-121988ClosedDone

$lookup on sharded view with concurrent drops and create matches no documents

Quick summary:  $lookup doesn't handle multiple view kickbacks correctly. The repro explains one situation where multiple view kickbacks are possible. Repro steps (also can be found in the comments): # Run a $lookup on a sharded view as the foreign collection (view A backed by collection B). # After the 'CommandOnShardedViewNotSupportedOnMongod' is raised and while mongos is resolving the view, we drop collection B and recreate it as view B on collection C. This can also happen between ge

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.