You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Stevo Slavic (JIRA)" <ji...@apache.org> on 2015/06/18 10:07:02 UTC
[jira] [Updated] (ZOOKEEPER-1954) StaticHostProvider loses IPv6
scope ID when resolving server addresses
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stevo Slavic updated ZOOKEEPER-1954:
------------------------------------
Flags: Patch
[~bhavanki] consider removing yourself as assignee and setting issue status to todo instead of in progress.
I've turned on flag in JIRA that the issue has a patch.
I'm guessing it may help ZooKeeper committers find issues which are pending to be done, and have patches. Now they may think issue is being actively worked on by someone.
> StaticHostProvider loses IPv6 scope ID when resolving server addresses
> ----------------------------------------------------------------------
>
> Key: ZOOKEEPER-1954
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1954
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.4.6
> Reporter: Bill Havanki
> Assignee: Bill Havanki
> Priority: Minor
> Attachments: ZOOKEEPER-1954.patch
>
>
> I have been getting constant failures of the {{ClientPortBindTest}} unit test (see ZOOKEEPER-1256) on my Macbook. I traced the problem to loss of the IPv6 scope ID on the address chosen for the loopback address in the unit test.
> The address chosen is: fe80:0:0:0:0:0:0:1%1. The scope ID here is 1, after the percent sign.
> The scope ID is lost in the {{resolveAndShuffle()}} method of {{StaticHostProvider}}. The method uses {{InetAddress.getByAddress()}} which apparently does not preserve the scope ID in the host string it is passed. {{Inet6Address.getByAddress()}} can, although you have to parse the scope ID out of the host string yourself and pass it as its own parameter.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)