brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] brooklyn-server issue #497: Add findOpenSocketsOnNode to ReachableSocketFind...
Date Thu, 22 Dec 2016 13:01:03 GMT
Github user aledsage commented on the issue:
    LGTM. It's slightly concerning that `JcloudsUtil.getFirstReachableAddress` might now block
until the reachability check on the VM's private (unreachable) address times out. But I presume
that is what you're alluding to for "some other work on JcloudsLocation".
    To elaborate on my concern, imagine we are (somehow) given the IPs in order: `[,]` but where only is reachable. We might very quickly establish that ``
is reachable (in its future), while the check for `` might take a really long time
(e.g. because it's behind a firewall that just doesn't respond at all). When iterating over
the the results of `tryReachable()` in-order, we'll pause for a long time on the future.get()
of ``, before we move onto `` (which will have been evaluated really quickly).
    I don't know whether it's worth trying to avoid that. One way we could do it is for `getReachableAddresses()`
to take a callback argument, so it can be told immediately about each success/fail/timeout,
and also told when everything has been attempted. That would be a more complicated (internal)
API to use. Is it worth it?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message