[ 
https://issues.apache.org/jira/browse/BEAM-3261?focusedWorklogId=116291&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-116291
 ]

ASF GitHub Bot logged work on BEAM-3261:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jun/18 03:41
            Start Date: 27/Jun/18 03:41
    Worklog Time Spent: 10m 
      Work Description: alanmyrvold commented on issue #5780: [BEAM-3261] Fix 
pipeline failures by waiting for logging server to be ready
URL: https://github.com/apache/beam/pull/5780#issuecomment-400533332
 
 
   Run Python Dataflow ValidatesContainer

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 116291)
    Time Spent: 0.5h  (was: 20m)

> Apex runner does not detect pipeline failure
> --------------------------------------------
>
>                 Key: BEAM-3261
>                 URL: https://issues.apache.org/jira/browse/BEAM-3261
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-apex
>            Reporter: Eugene Kirpichov
>            Assignee: Thomas Weise
>            Priority: Blocker
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I was looking at https://github.com/apache/beam/pull/4074/files and asked 
> myself "Don't we already have a ValidatesRunner test for this?"
> Turns out we do: 
> https://github.com/apache/beam/blob/3b79b6298e84711528b5ad1302200cb8acbac07e/sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/ViewTest.java#L793
> I ran this test with TestApexRunner, and I observed the same exception as in 
> https://stackoverflow.com/questions/46982827/error-when-using-side-input-withsideinputs-method-not-accepting-kv-type-as-inp?noredirect=1#comment81040223_46982827
>  , however the test passed.
> It seems that it is passing because ApexRunnerResult.waitUntilFinish() 
> detects only PAssert assertion errors, but not any other errors: 
> https://github.com/apache/beam/blob/3b79b6298e84711528b5ad1302200cb8acbac07e/runners/apex/src/main/java/org/apache/beam/runners/apex/ApexRunnerResult.java#L62
> This seems very problematic, as it means that 1) the status of Apex 
> ValidatesRunner tests cannot be trusted: if they fail in any other way other 
> than a PAssert error, the failure will be undetected, and 2) in general, a 
> user can not trust a successful pipeline.run() from Apex runner.
> For tests in particular, some other TestXRunner's guard against such a 
> failure mode by verifying not only that there were no assertion failures, but 
> also that all assertions succeeded - using metrics: e.g. 
> https://github.com/apache/beam/blob/3b79b6298e84711528b5ad1302200cb8acbac07e/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/TestDataflowRunner.java#L248
>  . Fixing this would be optimal, but meanwhile, the runner should at least 
> fail the pipeline in case of error.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to