Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6088

TestTokenCache tests should use their own JobConf instances

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • mrv1, test
    • None
    • Reviewed

    Description

      TestTokenCache in mrv1 (branch-1) depend on the order of test execution. testLocalJobTokenCache will fail if it executed after testTokenCache.
      The reason is because testLocalJobTokenCache depends on the jConf setup by testTokenCache.
      The fix is to set up the JobConf separately for testLocalJobTokenCache and testTokenCache.

      See the following test result.

      Testcase: testLocalJobTokenCache took 1.197 sec
      	FAILED
      local Job failed
      junit.framework.AssertionFailedError: local Job failed
      	at org.apache.hadoop.mapreduce.security.TestTokenCache.testLocalJobTokenCache(TestTokenCache.java:258)
      Testcase: testGetTokensForNamenodes took 0.003 sec
      Testcase: testGetTokensForUriWithoutAuth took 0.01 sec
      Testcase: testCleanUpTokenReferral took 0.014 sec
      Testcase: testTokenCache took 13.316 sec
      

      Attachments

        1. MAPREDUCE-6088.branch-1.0.patch
          2 kB
          Zhihai Xu
        2. MAPREDUCE-6088.branch-1.1.patch
          0.7 kB
          Zhihai Xu

        Activity

          People

            zxu Zhihai Xu
            zxu Zhihai Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: