Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1127 Fix failing and intermittent Ozone unit tests
  3. HDDS-2933

Intermittent failure in TestOzoneDelegationTokenSecretManager

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Sprint:
      HDDS BadLands

      Description

      [INFO] Running org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager
      [ERROR] Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.757 s <<< FAILURE! - in org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager
      [ERROR] testRenewTokenFailureRenewalTime(org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager)  Time elapsed: 0.255 s  <<< FAILURE!
      java.lang.AssertionError: 
      Expecting java.io.IOException with text is expired but got :  Expected to find 'is expired' but got unexpected exception: org.apache.hadoop.security.token.SecretManager$InvalidToken: token (OzoneToken owner=testUser, renewer=testUser, realUser=testUser, issueDate=1579761150795, maxDate=1579761160795, sequenceNumber=1, masterKeyId=1, strToSign=null, signature=null, awsAccessKeyId=null) can't be found in cache
        at org.apache.hadoop.ozone.security.OzoneDelegationTokenSecretManager.validateToken(OzoneDelegationTokenSecretManager.java:362)
        at org.apache.hadoop.ozone.security.OzoneDelegationTokenSecretManager.renewToken(OzoneDelegationTokenSecretManager.java:244)
        at org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager.lambda$testRenewTokenFailureRenewalTime$2(TestOzoneDelegationTokenSecretManager.java:254)
        at org.apache.hadoop.test.LambdaTestUtils.lambda$intercept$0(LambdaTestUtils.java:527)
        at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:491)
        at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:522)
        at org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager.testRenewTokenFailureRenewalTime(TestOzoneDelegationTokenSecretManager.java:253)
      ...
        at org.apache.hadoop.test.GenericTestUtils.assertExceptionContains(GenericTestUtils.java:350)
        at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:500)
        at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:522)
        at org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager.testRenewTokenFailureRenewalTime(TestOzoneDelegationTokenSecretManager.java:253)
      ...
      Caused by: org.apache.hadoop.security.token.SecretManager$InvalidToken: token (OzoneToken owner=testUser, renewer=testUser, realUser=testUser, issueDate=1579761150795, maxDate=1579761160795, sequenceNumber=1, masterKeyId=1, strToSign=null, signature=null, awsAccessKeyId=null) can't be found in cache
        at org.apache.hadoop.ozone.security.OzoneDelegationTokenSecretManager.validateToken(OzoneDelegationTokenSecretManager.java:362)
        at org.apache.hadoop.ozone.security.OzoneDelegationTokenSecretManager.renewToken(OzoneDelegationTokenSecretManager.java:244)
        at org.apache.hadoop.ozone.security.TestOzoneDelegationTokenSecretManager.lambda$testRenewTokenFailureRenewalTime$2(TestOzoneDelegationTokenSecretManager.java:254)
        at org.apache.hadoop.test.LambdaTestUtils.lambda$intercept$0(LambdaTestUtils.java:527)
        at org.apache.hadoop.test.LambdaTestUtils.intercept(LambdaTestUtils.java:491)
        ... 31 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adoroszlai Attila Doroszlai
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: