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

Some tests leave a config file open causing failure on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • None
    • conf
    • None

    Description

      Java xml parser keeps file locked after SAXException, causing the following tests to fail:

      • TestQueueManagerForJobKillAndJobPriority
      • TestQueueManagerForJobKillAndNonDefaultQueue

      TestQueueManagerForJobKillAndJobPriority#testQueueAclRefreshWithInvalidConfFile() is creating a temp config file with incorrect syntax. Later, the test tries to delete/cleanup this file and this operation fails on Windows (as the file is still open). From this point on, all subsequent tests fail because they try to use the incorrect config file.

      Forum references on the problem and the fix:
      http://www.linuxquestions.org/questions/programming-9/java-xml-parser-keeps-file-locked-after-saxexception-768613/
      https://forums.oracle.com/forums/thread.jspa?threadID=2046505&start=0&tstart=0

      Attachments

        Issue Links

          Activity

            People

              ivanmi Ivan Mitic
              ivanmi Ivan Mitic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: