Skip to content

Commit

Permalink
[BEAM-2140] Don't use StatefulDoFnRunner when running SDF in FlinkRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoscha committed Feb 23, 2018
1 parent 3eecb38 commit d15979f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.apache.beam.runners.core.DoFnRunner;
import org.apache.beam.runners.core.KeyedWorkItem;
import org.apache.beam.runners.core.KeyedWorkItems;
import org.apache.beam.runners.core.OutputAndTimeBoundedSplittableProcessElementInvoker;
Expand Down Expand Up @@ -87,6 +88,15 @@ public SplittableDoFnOperator(
keyCoder);
}

@Override
protected DoFnRunner<
KeyedWorkItem<String, KV<InputT, RestrictionT>>, OutputT> createWrappingDoFnRunner(
DoFnRunner<KeyedWorkItem<String, KV<InputT, RestrictionT>>, OutputT> wrappedRunner) {
// don't wrap in anything because we don't need state cleanup because ProcessFn does
// all that
return wrappedRunner;
}

@Override
public void open() throws Exception {
super.open();
Expand Down

0 comments on commit d15979f

Please sign in to comment.