Skip to content

[BEAM-1377] Uses KV in SplittableParDo expansion instead of ElementAndRestriction#3417

Closed
jkff wants to merge 2 commits intoapache:masterfrom
jkff:sdf-kv
Closed

[BEAM-1377] Uses KV in SplittableParDo expansion instead of ElementAndRestriction#3417
jkff wants to merge 2 commits intoapache:masterfrom
jkff:sdf-kv

Conversation

@jkff
Copy link
Contributor

@jkff jkff commented Jun 21, 2017

This is a workaround for the following issue.

ElementAndRestriction is in runners-core, which may be shaded by runners
(and is shaded by Dataflow runner), hence it should be both produced
and consumed by workers - but currently it's produced by (shaded)
SplittableParDo and consumed by (differently shaded) ProcessFn in the
runner's worker code.

There are several ways out of this, e.g. moving EAR into the SDK (icky
because it's an implementation detail of SplittableParDo), or using
a type that's already in the SDK. There may be other more complicated
ways too.

(This PR will require building a compatible Dataflow worker, so it will naturally not pass tests initially)

R: @kennknowles

@lukecwik
Copy link
Member

It makes sense to use KV over ElementAndRestriction

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling dae5221 on jkff:sdf-kv into ** on apache:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling dae5221 on jkff:sdf-kv into ** on apache:master**.

jkff added 2 commits June 22, 2017 14:59
This is a workaround for the following issue.

ElementAndRestriction is in runners-core, which may be shaded by runners
(and is shaded by Dataflow runner), hence it should be *both* produced
and consumed by workers - but currently it's produced by (shaded)
SplittableParDo and consumed by (differently shaded) ProcessFn in the
runner's worker code.

There are several ways out of this, e.g. moving EAR into the SDK (icky
because it's an implementation detail of SplittableParDo), or using
a type that's already in the SDK. There may be other more complicated
ways too.
@jkff
Copy link
Contributor Author

jkff commented Jun 22, 2017

Run Dataflow ValidatesRunner

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 70.862% when pulling 2e73bba on jkff:sdf-kv into 5506be8 on apache:master.

@kennknowles
Copy link
Member

LGTM

@asfgit asfgit closed this in 8860cce Jun 23, 2017
@jkff jkff deleted the sdf-kv branch June 23, 2017 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants