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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: conf
    • Labels:
      None
    • Target Version/s:

      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

              • Assignee:
                ivanmi Ivan Mitic
                Reporter:
                ivanmi Ivan Mitic
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: