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
Conversation
@@ -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()) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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:
- We can try to give an error message with the correct Flink version, but if
flink_version()
fails, give a message with a generic1.x
. - 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
* [BEAM-12662] Get Flink version from cluster. * [BEAM-12662] Log placeholder if we can't get Flink version from cluster.
R: @robertwb
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunner
compliance status (on master branch)Examples testing status on various runners
Post-Commit SDK/Transform Integration Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.