[ 
https://issues.apache.org/jira/browse/BROOKLYN-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15089125#comment-15089125
 ] 

ASF GitHub Bot commented on BROOKLYN-213:
-----------------------------------------

GitHub user mattunderscorechampion opened a pull request:

    https://github.com/apache/incubator-brooklyn/pull/1133

    BROOKLYN-213 Fix localhost external IP loader

    Remove shutdown IP address lookup service from list of resolvers.
    Block the lookup methods until either all providers have been checked or 
the IP address has been resolved.

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

    $ git pull https://github.com/pushtechnology/incubator-brooklyn 
fixLocalhostExternalIpLoaderTimeout

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

    https://github.com/apache/incubator-brooklyn/pull/1133.patch

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

    This closes #1133
    
----
commit 71f11ea1d2cd03d69cb96b2264b3502899f19f03
Author: Matt Champion <[email protected]>
Date:   2016-01-08T10:56:16Z

    Fix LocalhostExternalIpLoader blocking - BROOKLYN-213
    
    Lookups will now block until the first successful resolve attempt or all 
services have been tried.

commit d4565b89f3a89658851a6053db7177ff4a64debb
Author: Matt Champion <[email protected]>
Date:   2016-01-08T10:58:01Z

    Remove discontinued IP lookup service - BROOKLYN-213
    
    The IP lookup service http://www.telize.com/ip was discontinued on the 15th 
of November 2015.

----


> LocalhostExternalIpLoader failed to resolve IP address
> ------------------------------------------------------
>
>                 Key: BROOKLYN-213
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-213
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Matthew Champion
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The LocalhostExternalIpLoader failed to get the localhost's external IP 
> address for two reasons:
> The http://www.telize.com/ip IP service was shutdown on the 15th of November 
> 2015.
> https://web.archive.org/web/20160101200318/http://www.telize.com/
> all attempts to load from this address now fail.
> The method LocalhostExternalIpLoader#getLocalhostIpWithin(Duration) method 
> was invoked with a duration of 1 minute but failed after a few seconds. The 
> implementation blocks until after the first attempt to load an IP address not 
> the first successful attempt.
> It selected the telize service to try first, threw an IllegalStateExecption 
> after a few seconds and did not retry with any other providers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to