Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9515

Intermittent TestZKSecretWatcher#testKeyUpdate failure

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0
    • None
    • None
    • Reviewed

    Description

      From https://builds.apache.org/job/hbase-0.96-hadoop2/19/testReport/org.apache.hadoop.hbase.security.token/TestZKSecretWatcher/testKeyUpdate/ :

      java.lang.AssertionError: expected null, but was:<AuthenticationKey[ id=2, expiration=9223372036854775807 ]>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotNull(Assert.java:664)
      	at org.junit.Assert.assertNull(Assert.java:646)
      	at org.junit.Assert.assertNull(Assert.java:656)
      	at org.apache.hadoop.hbase.security.token.TestZKSecretWatcher.testKeyUpdate(TestZKSecretWatcher.java:149)
      

      It failed here:

          // verify that the expired key has been removed
          assertNull(KEY_SLAVE.getKey(key1.getKeyId()));
      

      Normally key1 should be removed by AuthenticationTokenSecretManager#removeKey():

          allKeys.remove(keyId);
      

      A search in the test output for 'Removing key ' yielded nothing.

      Attachments

        1. 9515-v2.txt
          4 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: