Skip to content

Conversation

@swegner
Copy link
Contributor

@swegner swegner commented May 10, 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.

Display data is collected from PTransforms at Pipeline construction
time. Collecting display data runs user code from provided transforms
and fn's. These components should be designed not to throw during
pipeline construction, however we also shouldn't fail a pipeline
if this code does fail.

This PR adds resiliency to the DataflowPipelineTranslator, where
we collect display data for the Dataflow runner, and also a
RunnableOnService test to verify that all runners are resilient to
display data failures. Other runners are not yet using display data,
but will get this validation for free when they do.

Display data is collected from PTransforms at Pipeline construction
time. Collecting display data runs user code from provided transforms
and fn's. These components should be designed not to throw during
pipeline construction, however we also shouldn't fail a pipeline
if this code does fail.

This PR adds resiliency to the DataflowPipelineTranslator, where
we collect display data for the Dataflow runner, and also a
RunnableOnService test to verify that all runners are resilient to
display data failures. Other runners are not yet using display data,
but will get this validation for free when they do.
@swegner
Copy link
Contributor Author

swegner commented May 10, 2016

R: @dhalperi

*/
@Test
@Category(RunnableOnService.class)
public void testRunnersResilientToDispalyDataExceptions() {
Copy link
Contributor

Choose a reason for hiding this comment

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

display

@dhalperi
Copy link
Contributor

dhalperi commented May 10, 2016

LGTM -- let me know when tests are green and typos are fixed.

See if @bjchambers wants to sign off as well?

@swegner
Copy link
Contributor Author

swegner commented May 10, 2016

I've addressed all feedback so far. Please take another look. @dhalperi / @bjchambers

@dhalperi
Copy link
Contributor

"let me know when tests are green and typos are fixed." -- test aren't green ;)

@swegner
Copy link
Contributor Author

swegner commented May 10, 2016

All checks have passed

@dhalperi 🍏 📗 💚 !!!

@dhalperi
Copy link
Contributor

Per discussion with bchambers@ -- looks like you want to revisit this to put a message in display data that there was an exception getting the display data?

@swegner
Copy link
Contributor Author

swegner commented May 12, 2016

I've addressed all feedback so far. Please take another look. @dhalperi

@asfgit asfgit closed this in 9f105ec May 12, 2016
@swegner
Copy link
Contributor Author

swegner commented May 16, 2016

Backport: GoogleCloudPlatform/DataflowJavaSDK#230

@swegner swegner deleted the displaydata-safe branch May 21, 2016 00:10
dhalperi pushed a commit to dhalperi/beam that referenced this pull request Aug 23, 2016
* Make IdentityWindowFn and NeverTrigger available

This will be used as part of the new PAssert

IdentityWindowFn remains package-private to restrict usage.

(cherry picked from commit c9a1efa)

* fixup! Checkstyle validation
iemejia pushed a commit to iemejia/beam that referenced this pull request Jan 12, 2018
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.

2 participants