Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10199

Unit tests TestCopyFiles, TestDistCh, TestLogalyzer under org.apache.hadoop.tools are failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0
    • None
    • None
    • Reviewed

    Description

      Due to logging changes introduced in HDFS-9402 the TestCopyFiles, TestDistCh, TestLogalyzer are
      failing due to ClassCastException thrown from org.apache.hadoop.tools.TestCopyFiles' constructor.

      Error message:

      Running org.apache.hadoop.tools.TestLogalyzer
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.213 sec - in org.apache.hadoop.tools.TestLogalyzer
      
      Results :
      
      Failed tests:
        TestSuite$1.warning Exception in constructor: testDeleteLocal (java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to org.apache.commons.logging.impl.Log4JLogger
              at org.apache.hadoop.tools.TestCopyFiles.<init>(TestCopyFiles.java:63)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at junit.framework.TestSuite.createTest(TestSuite.java:63)
              at junit.framework.TestSuite.addTestMethod(TestSuite.java:310)
              at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153)
              at junit.framework.TestSuite.<init>(TestSuite.java:132)
              at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:72)
              at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:11)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
              at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
              at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      )
      

      Attachments

        1. HDFS-10199.01.patch
          0.8 kB
          Tibor Kiss
        2. HDFS-10199-branch-2.01.patch
          0.8 kB
          Tibor Kiss

        Activity

          People

            tibor.kiss@gmail.com Tibor Kiss
            tibor.kiss@gmail.com Tibor Kiss
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: