<< Back to previous view

[QB-1161] Invalid junit TEST-*.xml files are locked by QB2 buildagent process
Created: 06/Dec/11  Updated: 15/Dec/11

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 3.1.61
Fix Version/s: 3.1.67, 4.0.19

Type: Bug Priority: Critical
Reporter: AlSt Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown

File Attachments: PNG File junit-test-purepath.png     PNG File purepath-file-close.png     PNG File purepath-file-open.png     JPEG File screenshot-1.jpg     PNG File XmlHelper-readXml.png    

 Description   
See QB-663:

{quote}
...
02:29:04,161 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - C:\qb3\workspace\trunk\all\integrationtests\osgi.integrationtest.test\report\TEST-com.dynatrace.diagnostics.integrationtest.dotnet.AdoConnectionPoolTest$AdoConnectionPool40Test.xml - The process cannot access the file because it is being used by another process.
...
02:29:05,706 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - Handles:
...
02:29:06,253 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - java.exe Pid: 5392 1564:C:\qb3\workspace\trunk\all\integrationtests\osgi.integrationtest.test\report\TEST-com.dynatrace.diagnostics.integrationtest.dotnet.AdoDotNet35Test.xml
...
02:29:06,253 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - Processes:
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - 5392 "c:\devtools\jdk1.6.0_23\bin\java" -Djava.awt.headless=true -Xverify:none -agentpath:"C:\dynatrace-qb3-agent\lib\dtagent.dll"=name=qb3slave,server=slab1.dynatrace.local:9998 -Xms256m -Xmx1024m -Djava.library.path=".;../plugins/com.pmease.quickbuild.libs;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Subversion\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\\" -classpath "wrapper.jar;../plugins/com.pmease.quickbuild.bootstrap;../plugins/com.pmease.quickbuild.bootstrap/lib/joda-time-1.6.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/slf4j-api-1.5.8.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/commons-logging-1.0.4.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/javax.servlet_2.4.0.v200806031604.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/hessian-3.2.1.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/jul-to-slf4j-1.5.8.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/commons-lang-2.4.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/commons-codec-1.3.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/slf4j-log4j12-1.5.8.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/commons-io-1.4.jar;../plugins/com.pmease.quickbuild.bootstrap/lib/log4j-1.2.15.jar" -Dwrapper.key="OQiA_uQzMyNm6SC9j_5906MGAQOgPF7_" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1104 -Dwrapper.version="3.3.9-st" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="3600" -Dwrapper.jvmid=4 org.tanukisoftware.wrapper.WrapperSimpleApp com.pmease.quickbuild.bootstrap.Bootstrap
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO -
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO -
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - Sending email "CI notification" to ******@****** at Mailserver: mail.****.local
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - -------------------------------------------------------------
02:29:14,258 [master>clean>clean-svn@B-W8-64-IIS7DN4:8811] INFO - svn based cleaning of file/dir C:\qb3\workspace\trunk\all\integrationtests\osgi.integrationtest.test\report detected an open handle used by another process
{quote}

In case the JUnit XML files are kind of corrupt, there is a missing file handle closing in the code (see attached screenshots): I would suggest a fix according to the attached "XmlHelper-readXml" diff.
Generated at Sat May 04 09:22:25 UTC 2024 using JIRA 189.