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

HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Test fails if directory does not exist. Ideally Test should create the non existent directory and execute.

      java.lang.AssertionError: Test webapp dir D:\Hadoop\hadoop-common-project\hadoop-common\build\test\webapps\test can not be created
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.apache.hadoop.http.HttpServerFunctionalTest.prepareTestWebapp(HttpServerFunctionalTest.java:127)
      	at org.apache.hadoop.http.HttpServerFunctionalTest.createTestServer(HttpServerFunctionalTest.java:91)
      	at org.apache.hadoop.http.TestHttpServer.setup(TestHttpServer.java:138)
      

      And in the HttpServerFunctionalTest#prepareTestWebapp java doc says that fail if directory can not be created but test is failing if directory does not exist.

      /**
         * Prepare the test webapp by creating the directory from the test properties
         * fail if the directory cannot be created.
         * @throws AssertionError if a condition was not met
         */
        protected static void prepareTestWebapp() {
      // some code
      }
      

        Attachments

          Activity

            People

            • Assignee:
              rohithsharma Rohith Sharma K S
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: