-
Type:
Improvement
-
Resolution: Done
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: 2.0.6
-
Component/s: MapReduce
-
Environment:OSX (not sure if that's relevant)
-
Query Optimization
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
The map function allows emit() to emit an undefined value for the key.
When many such emits occur, the reduce step will fail complaining that the value is too large to reduce.
I can't see a situation where I would ever want to allow a key to be undefined, so I would like emit to throw an exception on the emit(). If changing the default behavior is undesirable, some sort of 'strict' flag that enforced this would be nice.
Personally, I ran into this because I ran a new M/R against an old collection. I don't see it as a big deal for production systems, but at least the option to fail fast might speed up the development cycle.