Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-14486] Document pubsubio & fix its behavior. #17709

Merged
merged 2 commits into from
May 23, 2022

Conversation

lostluck
Copy link
Contributor

Removes experimental note from the Go SDK's PubSubio and make it clear that it only works with Dataflow as currently implemented. If that changes, so too can the documentation.

Fix a behavioral difference with the python implementation, where raw bytes messages weren't wrapped in messages before writing. They are now wrapped. Explicitly panic for other PCollection inputs.

Since this only works on dataflow as implemented, these changes have been manually tested with a modified wordcap that sends data through a PubSub loop (publishing to the same topic being read from). Each pipeline was then successfully drained.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@codecov
Copy link

codecov bot commented May 19, 2022

Codecov Report

Merging #17709 (2ca3cf9) into master (6774b74) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #17709   +/-   ##
=======================================
  Coverage   74.00%   74.01%           
=======================================
  Files         695      696    +1     
  Lines       91798    91833   +35     
=======================================
+ Hits        67938    67967   +29     
- Misses      22612    22616    +4     
- Partials     1248     1250    +2     
Flag Coverage Δ
go 50.46% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdks/go/pkg/beam/pardo.go 47.41% <0.00%> (-3.03%) ⬇️
sdks/go/pkg/beam/core/runtime/graphx/translate.go 43.01% <0.00%> (ø)
...o/pkg/beam/io/rtrackers/offsetrange/offsetrange.go 75.70% <0.00%> (ø)
sdks/go/pkg/beam/core/sdf/wrappedbounded.go 0.00% <0.00%> (ø)
sdks/go/pkg/beam/core/runtime/exec/sdf.go 71.16% <0.00%> (+0.15%) ⬆️
sdks/go/pkg/beam/runners/dataflow/dataflow.go 53.64% <0.00%> (+0.62%) ⬆️
...ks/go/pkg/beam/runners/dataflow/dataflowlib/job.go 22.84% <0.00%> (+6.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6774b74...2ca3cf9. Read the comment docs.

@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@lostluck
Copy link
Contributor Author

R: @jrmccluskey

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link
Contributor

@jrmccluskey jrmccluskey left a comment

Choose a reason for hiding this comment

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

LGTM mod Danny's comments around generics registration. An integration test would be nice but I understand the limitations around it.

@lostluck lostluck merged commit aea7c13 into apache:master May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants