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-11934] Remove Dataflow override of streaming WriteFiles with runner determined sharding #15178

Merged
merged 5 commits into from Jul 17, 2021

Conversation

nehsyc
Copy link
Contributor

@nehsyc nehsyc commented Jul 15, 2021

  • Remove Dataflow override of streaming WriteFiles with runner determined sharding in favor of auto sharding.
  • Update FileIO documentation.

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.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang Build Status Build Status Build Status --- Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

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.

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 15, 2021

R: @chamikaramj

@chamikaramj
Copy link
Contributor

Do you think we should keep the old behavior as an option in case some customers run into issues ?

@lukecwik
Copy link
Member

Do you think we should keep the old behavior as an option in case some customers run into issues ?

We should make it the default for runner v2.

@reuvenlax Is it worth making this the default and requiring users to pass in a flag to maintain support for pipeline update for older versions?

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 16, 2021

Do you think we should keep the old behavior as an option in case some customers run into issues ?

The override was not used because before the introduction of auto sharding, streaming write was required to specify a fixed number of shards otherwise fails:

getComputeNumShards() != null || getNumShardsProvider() != null,

I forgot to remove the override when I loosed the check to allow runner determined sharding for unbounded data :\

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 16, 2021

Do you think we should keep the old behavior as an option in case some customers run into issues ?

We should make it the default for runner v2.

@reuvenlax Is it worth making this the default and requiring users to pass in a flag to maintain support for pipeline update for older versions?

I assume that you meant making runner determined sharding default for runner v2.

Older versions don't support runner determined sharding for unbounded data (strictly speaking, versions before 2.29.0) so fixed sharding option will be carried over on pipeline update. We could make new pipelines opt in by default.

@chamikaramj
Copy link
Contributor

I guess the only concern will be users who are upgrading from Beam 2.29.0 or later then, right ?

Since it's just a couple versions (and approximately three months) I don't think there's a need to be concerned about preserving backwards compatibility.

@chamikaramj
Copy link
Contributor

Run Java PreCommit

@chamikaramj
Copy link
Contributor

Run Java_Examples_Dataflow PreCommit

@lukecwik
Copy link
Member

Do you think we should keep the old behavior as an option in case some customers run into issues ?

We should make it the default for runner v2.
@reuvenlax Is it worth making this the default and requiring users to pass in a flag to maintain support for pipeline update for older versions?

I assume that you meant making runner determined sharding default for runner v2.

Older versions don't support runner determined sharding for unbounded data (strictly speaking, versions before 2.29.0) so fixed sharding option will be carried over on pipeline update. We could make new pipelines opt in by default.

SGTM

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 16, 2021

PreCommit failures look irrelevant:

org.apache.beam.sdk.transforms.ParDoLifecycleTest.testTeardownCalledAfterExceptionInProcessElementStateful
org.apache.beam.runners.flink.FlinkSavepointTest.testSavepointRestoreLegacy
org.apache.beam.runners.flink.FlinkSavepointTest.testSavepointRestoreLegacy

@chamikaramj
Copy link
Contributor

Run Java PreCommit

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 16, 2021

cc:
@angoenka

@nehsyc
Copy link
Contributor Author

nehsyc commented Jul 17, 2021

All tests are passing now :D

@chamikaramj
Copy link
Contributor

Thanks. LGTM.

@chamikaramj chamikaramj merged commit ee32c23 into apache:master Jul 17, 2021
@reuvenlax
Copy link
Contributor

i suspect this PR is causing the WordCount test to become extremely flaky. I think this code actually was being actuated before, and now without it every bundle is becoming a separate file to writet.

reuvenlax added a commit that referenced this pull request Jul 31, 2021
… with runner determined sharding (#15178)"

This reverts commit ee32c23.
nehsyc added a commit to nehsyc/beam that referenced this pull request Aug 5, 2021
… with runner determined sharding (apache#15178)"

This reverts commit ee32c23.
Quarz0 pushed a commit to Quarz0/beam that referenced this pull request Aug 10, 2021
… with runner determined sharding (apache#15178)"

This reverts commit ee32c23.
ryanthompson591 pushed a commit to ryanthompson591/beam that referenced this pull request Aug 10, 2021
…nner determined sharding (apache#15178)

* Remove Dataflow override of streaming WriteFiles

* Update the documentation in FileIO

* spotless

* Fix checkStyle
ryanthompson591 pushed a commit to ryanthompson591/beam that referenced this pull request Aug 10, 2021
… with runner determined sharding (apache#15178)"

This reverts commit ee32c23.
calvinleungyk pushed a commit to calvinleungyk/beam that referenced this pull request Sep 22, 2021
…nner determined sharding (apache#15178)

* Remove Dataflow override of streaming WriteFiles

* Update the documentation in FileIO

* spotless

* Fix checkStyle
calvinleungyk pushed a commit to calvinleungyk/beam that referenced this pull request Sep 22, 2021
… with runner determined sharding (apache#15178)"

This reverts commit ee32c23.
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.

None yet

4 participants