[ https://issues.apache.org/jira/browse/HDFS-4783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated HDFS-4783: -------------------------------- Attachment: HDFS-4783.1.patch This patch fixes the problem by reconstructing the addresses used for testing and forcing the host name to "localhost", so no host name resolution by the OS is required. The test previously failed in the second for loop after the call to SecurityUtilTestHelper.setTokenServiceUseIp(false). I verified that the test passes on Mac and Windows with this patch. > TestDelegationTokensWithHA#testHAUtilClonesDelegationTokens fails on Windows > ---------------------------------------------------------------------------- > > Key: HDFS-4783 > URL: https://issues.apache.org/jira/browse/HDFS-4783 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 3.0.0, 2.0.5-beta > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Attachments: HDFS-4783.1.patch > > > This test asserts that delegation tokens previously associated to a host with > a resolved IP address no longer match for selection when > hadoop.security.token.service.use_ip is set false. The test assumes that > 127.0.0.1 resolves to host name "localhost". On Windows, this is not the > case, and instead it resolves to "127.0.0.1". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira