-
Notifications
You must be signed in to change notification settings - Fork 266
Summingbird batch doesn't work with the latest Scalding develop #760
Comments
I wonder what's the best way to address this issue. Maybe we should reimplement |
comment made on gitter. I didn't see the thing you mentioned yesterday @fwbrasil -- you need to make a change, not just bump the dep. |
@johnynek could you share the patch so I can unblock our tests? |
I think it's impossible to change API of scalding in a way to not break this portion of Summingbird? In this case is it possible to fix Summingbird in a way compatible with previous version of scalding too? |
posted the code to the wrong comment: right here: you need to call: I think you also need to do it here: I'm not sure if we have tests for the execution methods... We should. |
@ttim you could do some terrible reflection hack, but since summingbird does not use the Execution API natively, it reaches pretty into the cascading part. There are some subtleties here. Currently we check in the flowDef in summingbird if the flowDef is empty, but in scalding 0.18 we won't modify the flowDef actually until we plan, so that check is invalid. On the other hand, cascading for some reason throws if you plan an empty Flow, which is valid in summingbird if there is no work to do. |
here is a real diff: tests pass on that branch |
@johnynek thank you for sharing the patch!
Is there a specific reason for this design decision? Or is it just tech debt? It seems that migrating this code to use Execution would be a better solution. |
Techdebt. I tried the migration internally. It is basically a total rewrite. We spent a few days on it and couldn't get the tests to pass yet so we set it aside. I hope twitter does have the time to tackle this. Happy to code review it. |
ScaldingPlatform.run
doesn't trigger execution anymore since the flow creation just mutatesFlowStateMap
to be later used by the specific backend.CascadingBackend
isn't even called and summingbird produces following warning message:Even though twitter/scalding#1794 is a separate bug, it was surfaced because of the summingbird job doesn't produce data.
The text was updated successfully, but these errors were encountered: