-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: MapReduce
-
Query
-
ALL
When a map-reduce has "replace" for its output, it writes to a temp collection that gets renamed to the output collection./ This rename has two problems:
1) If the rename gets interrupted, the m/r operation swallows the Interrupted error and instead results in a non-specific error. Calling code doesn't know that the failure was caused by an interrupt.
2) The output collection has already been deleted. We don't explicitly guarantee that the replacement is atomic, but it's kind of a shame if an interrupt occurs after the old collection has been deleted but before the new output has been renamed, leaving the user with no data.