Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.2-alpha
-
None
-
Reviewed
Description
In the following code snippets, the test tries to check the renewCount for the token to verify if the FileSystem has been de-queued.
@Override public long renew(Configuration conf) { if (renewCount == MAX_RENEWALS) { Thread.currentThread().interrupt(); } else { renewCount++; } return renewCount; } testAddRemoveRenewAction() { // some test code assertTrue("Token not removed", (tfs.testToken.renewCount < MAX_RENEWALS)); }
On slower machines, the renewCount can actually reach MAX_RENEWALS resulting in a test failure.
renewCount should not be used to verify this.