flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3892) ConnectionUtils may die with NullPointerException
Date Thu, 19 May 2016 10:07:12 GMT

    [ https://issues.apache.org/jira/browse/FLINK-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15290840#comment-15290840

ASF GitHub Bot commented on FLINK-3892:

GitHub user mxm opened a pull request:


    [FLINK-3892] return null when hostname unresolvable

    Fix discovered in the course of #1978.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mxm/flink FLINK-3892

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2008
commit 034e718ef82f65c8bfbb3c18cb8acd2ad5dcfd08
Author: Maximilian Michels <mxm@apache.org>
Date:   2016-05-02T13:25:33Z

    [FLINK-3892] return null when hostname unresolvable


> ConnectionUtils may die with NullPointerException
> -------------------------------------------------
>                 Key: FLINK-3892
>                 URL: https://issues.apache.org/jira/browse/FLINK-3892
>             Project: Flink
>          Issue Type: Bug
>          Components: YARN Client
>    Affects Versions: 1.1.0, 1.0.3
>            Reporter: Maximilian Michels
>            Assignee: Maximilian Michels
>            Priority: Minor
>             Fix For: 1.1.0
> If an invalid hostname is specificed or the hostname can't be resolved from the current
interface, {{ConnectionUtils.findAddressUsingStrategy}} may throw a {{NullPointerException}}.
When trying to access the {{InetAddress}} of an {{InetSocketAddress}}, null is returned when
the host could not been resolved.
> The solution is to abort the attempt to find the local address if the host couldn't be

This message was sent by Atlassian JIRA

View raw message