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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: security, test
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: