You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 22:59:32 UTC

[GitHub] [beam] kennknowles opened a new issue, #19226: Streamline beam.Init() requirement for Go pipelines.

kennknowles opened a new issue, #19226:
URL: https://github.com/apache/beam/issues/19226

   When writing a Go pipeline it's necessary to call beam.Init() at the beginning of your code, but right now there is nearly no validation or checking around that. This makes it very easy for a new user of Beam Go to accidentally leave it out and not get a clear signal for why their pipeline isn't being executed as expected. This issue is for tracking progress towards streamlining this requirement to improve the user experience.
   
   In the short term this can be easily improved by improving documentation and examples to clearly communicate the necessity of beam.Init(), and also add log warnings to provide some signal if the user forgot to call it.
   
   In the long term, the best solution to this would be to try avoiding the problem all together (for example by removing the need for beam.Init(), or having it called implicitly without relying on users to call it), or to create a stronger failure state, for example by having pipelines without beam.Init() immediately break with a clear message notifying the user that it was not called.
   
   Imported from Jira [BEAM-6113](https://issues.apache.org/jira/browse/BEAM-6113). Original Jira may contain additional context.
   Reported by: danoliveira.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] damccorm commented on issue #19226: Streamline beam.Init() requirement for Go pipelines.

Posted by GitBox <gi...@apache.org>.
damccorm commented on issue #19226:
URL: https://github.com/apache/beam/issues/19226#issuecomment-1147593132

   Adding the good first issue tag because I think the short term solutions don't require a ton of context. The longer term solution might be harder(though failing pipelines without beam.Init might be doable)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org