You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/10 17:07:12 UTC

[jira] [Commented] (BEAM-9337) DataflowPipelineJob.waitUntilFinish() crashes when it has created a template.

    [ https://issues.apache.org/jira/browse/BEAM-9337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174533#comment-17174533 ] 

Beam JIRA Bot commented on BEAM-9337:
-------------------------------------

This issue is P2 but has been unassigned without any comment for 60 days so it has been labeled "stale-P2". If this issue is still affecting you, we care! Please comment and remove the label. Otherwise, in 14 days the issue will be moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed explanation of what these priorities mean.


> DataflowPipelineJob.waitUntilFinish() crashes when it has created a template.
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-9337
>                 URL: https://issues.apache.org/jira/browse/BEAM-9337
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-dataflow
>            Reporter: Kenneth Knowles
>            Priority: P2
>              Labels: stale-P2
>
> {code:java}
> INFO: Template successfully created.
> Exception in thread "main" java.lang.UnsupportedOperationException: The result of template creation should not be used.
>         at org.apache.beam.runners.dataflow.util.DataflowTemplateJob.getJobId(DataflowTemplateJob.java:37)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.getJobWithRetries(DataflowPipelineJob.java:524)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.getStateWithRetries(DataflowPipelineJob.java:506)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.waitUntilFinish(DataflowPipelineJob.java:295)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.waitUntilFinish(DataflowPipelineJob.java:224)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.waitUntilFinish(DataflowPipelineJob.java:183)
>         at org.apache.beam.runners.dataflow.DataflowPipelineJob.waitUntilFinish(DataflowPipelineJob.java:176)
> {code}
> This is a real error. If a template was created, the job is complete. Instead of crashing by tried to access the job id, as though {{DataflowPipelineJob}} doesn't know it made a template, it should instead return successfully. Or perhaps there is another design choice. But just crashes does not make sense. Probably {{DataflowRunner}} should not return a {{DataflowPipelineJob}} at all in this way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)