Closed fwbrasil closed 6 years ago
I have thought about not returning an HMap there but a list of type aligned items. That way we can statically see this won't happen. Not sure how this is happening now.
the issue is actually due to a bad hashCode/equals of one our sources
I'm trying to isolate the issue. Basically
ToWrite.optimizeWriteBatch(writes, phases)
returns fewer elements than thewrites
input andAsyncFlowDefRunner. execute
expects that the map will have one entry for each element inwrites
. See:https://github.com/twitter/scalding/blob/develop/scalding-core/src/main/scala/com/twitter/scalding/typed/cascading_backend/AsyncFlowDefRunner.scala#L269 https://github.com/twitter/scalding/blob/develop/scalding-core/src/main/scala/com/twitter/scalding/typed/cascading_backend/AsyncFlowDefRunner.scala#L313
Stack trace: