diff --git a/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationToken.java b/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationToken.java index 25f91002174..bb5251f8339 100644 --- a/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationToken.java +++ b/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationToken.java @@ -88,7 +88,7 @@ public class TestAuthenticationToken extends TestCase { assertEquals("t", token.getType()); assertEquals(expires, token.getExpires()); assertFalse(token.isExpired()); - Thread.sleep(51); + Thread.sleep(70); // +20 msec fuzz for timer granularity. assertTrue(token.isExpired()); } @@ -102,7 +102,7 @@ public class TestAuthenticationToken extends TestCase { assertEquals("t", token.getType()); assertEquals(expires, token.getExpires()); assertFalse(token.isExpired()); - Thread.sleep(51); + Thread.sleep(70); // +20 msec fuzz for timer granularity. assertTrue(token.isExpired()); } diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 16d23c80957..dc75a483d7d 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -554,6 +554,8 @@ Trunk (Unreleased) HADOOP-9556. disable HA tests on Windows that fail due to ZooKeeper client connection management bug. (Chris Nauroth via suresh) + HADOOP-9553. TestAuthenticationToken fails on Windows. + (Arpit Agarwal via suresh) Release 2.0.5-beta - UNRELEASED