Skip to content

Conversation

@mxm
Copy link
Contributor

@mxm mxm commented Dec 4, 2018

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)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java 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 --- --- ---

@mxm mxm requested review from angoenka and tweise December 4, 2018 14:48
public void shouldSupportIPv6Batch() {
FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class);
options.setRunner(FlinkRunner.class);
options.setFlinkMaster("host:");
Copy link
Contributor Author

@mxm mxm Dec 4, 2018

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense.

@mxm
Copy link
Contributor Author

mxm commented Dec 7, 2018

Could one of you two please @tweise @angoenka review this minor change?

Copy link
Contributor

@angoenka angoenka left a 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:");
Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense.

The previous port parsing logic assumed colons to indicate a port number. That
assumption clearly can't be made for IPv6 addresses.
@mxm
Copy link
Contributor Author

mxm commented Dec 10, 2018

Thanks @angoenka. Added the tests also for Ipv4.

@mxm
Copy link
Contributor Author

mxm commented Dec 10, 2018

Run Python PreCommit

1 similar comment
@mxm
Copy link
Contributor Author

mxm commented Dec 11, 2018

Run Python PreCommit

@mxm
Copy link
Contributor Author

mxm commented Dec 11, 2018

Merging this. Python PreCommit failures are unrelated.

@mxm mxm merged commit 4d65d72 into apache:master Dec 11, 2018
@mxm mxm deleted the BEAM-6176 branch December 11, 2018 11:36
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.

2 participants