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-12662] Get Flink version from cluster. #15223

Merged
merged 2 commits into from Sep 10, 2021
Merged

Conversation

ibzib
Copy link
Contributor

@ibzib ibzib commented Jul 26, 2021

R: @robertwb


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 Build Status ---
XLang Build Status 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.

@@ -68,7 +68,7 @@ def executable_jar(self):
'the scheme is specified. If using a local file path, make sure '
'the file exists; you may have to first build the job server '
'using `./gradlew runners:flink:%s:job-server:shadowJar`.' %
(self._executable_jar, self._flink_version))
(self._executable_jar, self.flink_version())
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the server always up when we make this call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since flink_version() sends a request to the Flink rest endpoint, I don't think we can ever guarantee the call is going to work. I'm thinking we should do both:

  1. We can try to give an error message with the correct Flink version, but if flink_version() fails, give a message with a generic 1.x.
  2. Provide an actionable error message when the rest calls fail ("start a Flink cluster with rest enabled" etc.). This doesn't have to happen in this PR though, so I filed a separate ticket https://issues.apache.org/jira/browse/BEAM-12813.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM

@codecov
Copy link

codecov bot commented Aug 30, 2021

Codecov Report

Merging #15223 (01f16f6) into master (1117f7d) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15223      +/-   ##
==========================================
- Coverage   83.82%   83.79%   -0.04%     
==========================================
  Files         441      440       -1     
  Lines       59706    59881     +175     
==========================================
+ Hits        50051    50175     +124     
- Misses       9655     9706      +51     
Impacted Files Coverage Δ
...m/runners/portability/flink_uber_jar_job_server.py 92.62% <100.00%> (+2.79%) ⬆️
...n/apache_beam/ml/gcp/recommendations_ai_test_it.py 56.81% <0.00%> (-12.95%) ⬇️
.../python/apache_beam/testing/test_stream_service.py 88.37% <0.00%> (-4.66%) ⬇️
...ks/python/apache_beam/runners/worker/data_plane.py 87.70% <0.00%> (-2.90%) ⬇️
...hon/apache_beam/runners/direct/test_stream_impl.py 91.79% <0.00%> (-2.24%) ⬇️
...che_beam/runners/interactive/interactive_runner.py 90.65% <0.00%> (-1.87%) ⬇️
.../python/apache_beam/transforms/periodicsequence.py 96.72% <0.00%> (-1.64%) ⬇️
sdks/python/apache_beam/io/source_test_utils.py 88.47% <0.00%> (-1.39%) ⬇️
sdks/python/apache_beam/testing/test_stream.py 91.08% <0.00%> (-1.31%) ⬇️
.../apache_beam/io/gcp/datastore/v1new/datastoreio.py 86.45% <0.00%> (-0.99%) ⬇️
... and 32 more

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 1117f7d...01f16f6. Read the comment docs.

@ibzib ibzib merged commit efb4b60 into apache:master Sep 10, 2021
calvinleungyk pushed a commit to calvinleungyk/beam that referenced this pull request Sep 22, 2021
* [BEAM-12662] Get Flink version from cluster.

* [BEAM-12662] Log placeholder if we can't get Flink version from cluster.
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

2 participants