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#25046]add support for flink 1.16 for Beam Flink Runner #25584

Merged
merged 6 commits into from
Feb 24, 2023

Conversation

yananhao12
Copy link
Contributor

@yananhao12 yananhao12 commented Feb 21, 2023

#25046: add support for flink 1.16 for Beam Flink Runner

Incompatibility fixed: use TestBaseUtils.compareResultsByLinesInMemory directly in tests since AbstractTestBase no longer inherits TestBaseUtils


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

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • 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
Go tests

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

@yananhao12
Copy link
Contributor Author

@xinyuiscool

@github-actions
Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @damccorm for label python.
R: @Abacn for label build.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@codecov
Copy link

codecov bot commented Feb 22, 2023

Codecov Report

Merging #25584 (8675728) into master (948f7cd) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #25584      +/-   ##
==========================================
- Coverage   72.80%   72.79%   -0.01%     
==========================================
  Files         775      775              
  Lines      102866   102866              
==========================================
- Hits        74887    74877      -10     
- Misses      26524    26534      +10     
  Partials     1455     1455              
Flag Coverage Δ
python 81.93% <100.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...dks/python/apache_beam/options/pipeline_options.py 93.97% <100.00%> (ø)
.../beam/runners/prism/internal/jobservices/server.go 68.00% <0.00%> (-8.00%) ⬇️
.../python/apache_beam/testing/test_stream_service.py 88.09% <0.00%> (-4.77%) ⬇️
...python/apache_beam/runners/worker/worker_status.py 75.33% <0.00%> (-1.34%) ⬇️
...che_beam/runners/interactive/interactive_runner.py 90.50% <0.00%> (-1.27%) ⬇️
...eam/runners/portability/fn_api_runner/execution.py 92.49% <0.00%> (-0.64%) ⬇️
...on/apache_beam/runners/dataflow/dataflow_runner.py 81.74% <0.00%> (-0.15%) ⬇️
...hon/apache_beam/runners/direct/test_stream_impl.py 94.02% <0.00%> (+0.74%) ⬆️
sdks/python/apache_beam/io/localfilesystem.py 91.72% <0.00%> (+0.75%) ⬆️
sdks/python/apache_beam/internal/metrics/metric.py 94.00% <0.00%> (+1.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -38,5 +38,5 @@ javaVersion=1.8
docker_image_default_repo_root=apache
docker_image_default_repo_prefix=beam_

flink_versions=1.12,1.13,1.14,1.15
flink_versions=1.12,1.13,1.14,1.15,1.16
Copy link
Contributor

Choose a reason for hiding this comment

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

I am wondering what is the current strategy of supported Flink versions. Are we only keeping 4 versions at the moment? Ping @mxm @angoenka

Copy link
Contributor

Choose a reason for hiding this comment

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

By looking at pr history, adding and removing flink versions happen in different prs. So for this pr, we can add the support for 1.16. In the future we can remove 1.12 support.

Copy link
Member

Choose a reason for hiding this comment

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

Last time this was discussed ~2y ago the idea was to maintain the supported versions by Flink (1.16, 1.15) + one older version (1.14). So we should definitely get rid of 1.12 and probably 1.13. Of course an email to the dev@ mailing list would be a good idea, and maybe to put a warning in advance for the next release.

runners/flink/1.16/build.gradle Outdated Show resolved Hide resolved
Copy link
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

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

LGTM!

@xinyuiscool xinyuiscool requested a review from iemejia February 22, 2023 18:24
@xinyuiscool
Copy link
Contributor

@iemejia : hey, Ismael, do you have time to take a quick look at this pr? It's for upgrading to Flink 1.16. Thanks.

@Abacn
Copy link
Contributor

Abacn commented Feb 22, 2023

Run Java_PVR_Flink_Batch PreCommit

@yananhao12
Copy link
Contributor Author

Run Java_Kafka_IO_Direct PreCommit

@yananhao12
Copy link
Contributor Author

Run Java Tests

Copy link
Contributor

@becketqin becketqin left a comment

Choose a reason for hiding this comment

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

LGTM.

@Abacn
Copy link
Contributor

Abacn commented Feb 24, 2023

unit test not running. We need to add two lines here:

dependsOn(":runners:flink:1.15:job-server:build")

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

test passed, thanks, LGTM

@xinyuiscool xinyuiscool merged commit de71d13 into apache:master Feb 24, 2023
@Abacn Abacn mentioned this pull request Feb 24, 2023
3 tasks
@yananhao12 yananhao12 deleted the flink_1.16 branch February 24, 2023 18:55
yananhao12 added a commit to yananhao12/beam that referenced this pull request Feb 28, 2023
dxichen pushed a commit to linkedin/beam that referenced this pull request Feb 28, 2023
* [Beam#25046]add support for flink 1.16 for Beam Flink Runner (apache#25584)

(cherry picked from commit de71d13)

* bump Beam version

* fix spotless check

---------

Co-authored-by: Yanan Hao <[email protected]>
@iemejia
Copy link
Member

iemejia commented Mar 6, 2023

Sorry I was OOO and missed this one. Looks right, thanks @yananhao12 !
If you decide to go ahead and add the PRs to remove 1.12 and 1.13 feel free to ping me for the review.

@streamnsight
Copy link

great news... now when can we expect the maven repo to be updated? the docker images to run beam on Flink try to load the jars from there but they are not found.

INFO:apache_beam.utils.subprocess_server:Downloading job server jar from https://repo.maven.apache.org/maven2/org/apache/beam/beam-runners-flink-1.16-job-server/2.47.0/beam-runners-flink-1.16-job-server-2.47.0.jar not found

@Abacn
Copy link
Contributor

Abacn commented Mar 15, 2023

@streamnsight This will be shipped with Beam 2.47.0 which has not been released. Scheduled late April.

@Abacn
Copy link
Contributor

Abacn commented Mar 16, 2023

@streamnsight are you running beam at development branch (master)? For released version (2.46.0) it should use flink 1.15 by default; I am confused that the message shows the version is 2.47.0 which does not exist yet (not 2.47.0-SNAPSHOT)

steveniemitz pushed a commit to twitter-forks/beam that referenced this pull request May 10, 2023
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.

6 participants