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

[FLINK-5918] [runtime] port range support for config taskmanager.rpc.port #3416

Closed
wants to merge 2 commits into from

Conversation

barcahead
Copy link
Contributor

add port range support for config taskmanager.rpc.port using existing helper functions. The port range format follows the convention of blob.server.port.

  • General

    • The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
    • The pull request addresses only one issue
    • Each commit in the PR has a meaningful commit message (including the JIRA id)
  • Documentation

    • Documentation has been added for new functionality
    • Old documentation affected by the pull request has been updated
    • JavaDoc for public methods has been added
  • Tests & Build

    • Functionality added by the pull request is covered by tests
    • mvn clean verify has been executed successfully locally or a Travis build has passed

@@ -165,6 +165,7 @@ under the License.
<exclude>org.apache.flink.configuration.ConfigConstants#ENABLE_QUARANTINE_MONITOR</exclude>
<exclude>org.apache.flink.configuration.ConfigConstants#NETWORK_REQUEST_BACKOFF_INITIAL_KEY</exclude>
<exclude>org.apache.flink.configuration.ConfigConstants#NETWORK_REQUEST_BACKOFF_MAX_KEY</exclude>
<exclude>org.apache.flink.configuration.ConfigConstants#DEFAULT_TASK_MANAGER_IPC_PORT</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding an exclusion here should only be the last resort; converting the old constant to the new one is trivial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review, I will use a new constant instead.

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Changes look good to me except for the change of the config constants variable type as remarked by @zentol .

fn: => T,
stopCond: => Boolean,
maxSleepBetweenRetries : Long = 0 )
: scala.util.Try[T] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Flink's (implicit) Scala style is as follows:

def foobar(
    a: Int,
    b: Float)
  : Double = {
  // barfoo
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tillrohrmann the style is fixed :-)

@barcahead
Copy link
Contributor Author

@zentol @tillrohrmann Thanks for your review, I have addressed your comments and updated the PR.

@zentol
Copy link
Contributor

zentol commented Mar 29, 2017

merging.

zentol pushed a commit to zentol/flink that referenced this pull request Mar 29, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Mar 29, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Mar 30, 2017
@StephanEwen
Copy link
Contributor

@zentol Has this been merged?

@zentol
Copy link
Contributor

zentol commented Apr 21, 2017

no I haven't merged it yet. I wanted to try it out once more but forgot about it :(

@zentol
Copy link
Contributor

zentol commented Jun 27, 2017

merging, sorry it took so long!

zentol pushed a commit to zentol/flink that referenced this pull request Jun 27, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 27, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 27, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 28, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 28, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 28, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 29, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 29, 2017
zentol pushed a commit to zentol/flink that referenced this pull request Jun 30, 2017
@asfgit asfgit closed this in 3f0ac26 Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants