-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-6176] Support IPv6 addresses for Flink master url #7196
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
Conversation
| public void shouldSupportIPv6Batch() { | ||
| FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class); | ||
| options.setRunner(FlinkRunner.class); | ||
| options.setFlinkMaster("host:"); |
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.
I removed this test because HostAndPort permits "host:", in which host will be "host" and port the default port. I think that is fine.
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.
That makes sense.
angoenka
left a comment
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.
Thanks Max!
LGTM
Just minor test comments.
| public void shouldSupportIPv6Batch() { | ||
| FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class); | ||
| options.setRunner(FlinkRunner.class); | ||
| options.setFlinkMaster("host:"); |
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.
That makes sense.
runners/flink/src/test/java/org/apache/beam/runners/flink/FlinkExecutionEnvironmentsTest.java
Show resolved
Hide resolved
runners/flink/src/test/java/org/apache/beam/runners/flink/FlinkExecutionEnvironmentsTest.java
Show resolved
Hide resolved
The previous port parsing logic assumed colons to indicate a port number. That assumption clearly can't be made for IPv6 addresses.
|
Thanks @angoenka. Added the tests also for Ipv4. |
|
Run Python PreCommit |
1 similar comment
|
Run Python PreCommit |
|
Merging this. Python PreCommit failures are unrelated. |
The previous port parsing logic assumed colons to indicate a port number. That
assumption clearly can't be made for IPv6 addresses.
CC @angoenka @tweise
Post-Commit Tests Status (on master branch)