Skip to content

Conversation

@tgroh
Copy link
Member

@tgroh tgroh commented Apr 5, 2016

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace "<Jira issue #>" in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

This ensures that user code does not violate the model, as enforced
by ModelEnforcements.

Add a flag to control application of immutability enforcement. This flag
is enabled by default.

Also include minor touchups to ImmutabilityCheckingEnforcement.

@tgroh tgroh force-pushed the ippr_apply_enforcement branch 6 times, most recently from bcc52f6 to 8613bda Compare April 6, 2016 00:35
@tgroh
Copy link
Member Author

tgroh commented Apr 6, 2016

R: @kennknowles

@Default.Boolean(true)
@Description(
"Controls whether the runner should ensure that all of the elements of every "
+ "PCollection are not mutated after being output.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence reads a bit oddly. There's grammar, but then there's also the fact that you only talk about output, rather than input. Even though technically everything that is input was output too (derp) it is still helpful to describe in terms of properties of the DoFn, like "checks that a DoFn does not modify its inputs, nor modify its outputs after they have been output".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

tgroh added 2 commits April 7, 2016 09:03
This ensures that user code does not violate the model.

Add a flag to control application of immutability enforcement. This flag
is enabled by default.
Check per-element, to catch failures within a call to ProcessElement
more quickly.

Move wrapping of exceptions over the course of calls to ProcessElement
to ParDoInProcessEvaluator.
@tgroh tgroh force-pushed the ippr_apply_enforcement branch from b2a14cc to 150eac5 Compare April 7, 2016 16:30
@kennknowles
Copy link
Member

LGTM. I will merge this shortly.

tgroh pushed a commit to tgroh/beam that referenced this pull request Apr 7, 2016
@asfgit asfgit merged commit 150eac5 into apache:master Apr 7, 2016
asfgit pushed a commit that referenced this pull request Apr 7, 2016
iemejia referenced this pull request in iemejia/beam Jan 12, 2018
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
minxhe pushed a commit to minxhe/beam that referenced this pull request Nov 21, 2024
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.

3 participants