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

Java 1.7 support for org.apache.hadoop.fs.azure testcases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • fs/azure
    • None
    • Reviewed

    Description

      Recent improvement on AzureNativeFileSystem rename/delete performance (HADOOP-13403) yielded a test change (HADOOP-13459) which is incompatible with Java 1.7.

      If one tries to include those patches in a Java 1.7 compatible Hadoop tree (e.g. 2.7.x) the following error occurs during test run:

      initializationError(org.apache.hadoop.fs.azure.TestNativeAzureFileSystemClientLogging)  Time elapsed: 0.001 sec  <<< ERROR!
      java.lang.Exception: Class org.apache.hadoop.fs.azure.AbstractWasbTestBase should be public
      	at org.junit.runners.model.FrameworkMethod.validatePublicVoid(FrameworkMethod.java:91)
      	at org.junit.runners.model.FrameworkMethod.validatePublicVoidNoArg(FrameworkMethod.java:70)
      	at org.junit.runners.ParentRunner.validatePublicVoidNoArgMethods(ParentRunner.java:133)
      	at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:165)
      	at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:104)
      	at org.junit.runners.ParentRunner.validate(ParentRunner.java:355)
      	at org.junit.runners.ParentRunner.<init>(ParentRunner.java:76)
      	at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:57)
      	at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)
      	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)
      

      The problem can be resolved by setting AbstractWasbTestBase to public.

      Attachments

        1. HADOOP-13513-001.patch
          0.8 kB
          Tibor Kiss

        Issue Links

          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: