Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9113

o.a.h.fs.TestDelegationTokenRenewer is failing intermittently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-alpha
    • 2.0.3-alpha
    • security, test
    • 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.

      Attachments

        1. hadoop-9113.patch
          2 kB
          Karthik Kambatla
        2. hadoop-9113.patch
          2 kB
          Karthik Kambatla
        3. hadoop-9113.patch
          2 kB
          Karthik Kambatla
        4. hadoop-9113.patch
          3 kB
          Karthik Kambatla

        Activity

          People

            kasha Karthik Kambatla
            kasha Karthik Kambatla
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: