History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1161
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: AlSt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Invalid junit TEST-*.xml files are locked by QB2 buildagent process

Created: 06/Dec/11 10:32 AM   Updated: 15/Dec/11 04:03 AM
Component/s: None
Affects Version/s: 3.1.61
Fix Version/s: 3.1.67, 4.0.19

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. junit-test-purepath.png
(293 kb)

2. purepath-file-close.png
(78 kb)

3. purepath-file-open.png
(89 kb)

4. screenshot-1.jpg
(268 kb)

5. XmlHelper-readXml.png
(97 kb)


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
Change by AlSt [06/Dec/11 10:33 AM]
Field Original Value New Value
Attachment junit-test-purepath.png [ 10283 ]

Change by AlSt [06/Dec/11 10:33 AM]
Attachment purepath-file-close.png [ 10284 ]

Change by AlSt [06/Dec/11 10:33 AM]
Attachment purepath-file-open.png [ 10285 ]

Change by AlSt [06/Dec/11 10:33 AM]
Attachment XmlHelper-readXml.png [ 10286 ]

Change by AlSt [06/Dec/11 10:34 AM]
Attachment screenshot-1.jpg [ 10287 ]

Change by Robin Shen [06/Dec/11 10:55 AM]
Assignee Robin Shine [ robinshine ] Steve Luo [ steve ]

Change by Steve Luo [07/Dec/11 04:00 PM]
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 testautomation@dynatrace.com at Mailserver: mail.dynatrace.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.
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.

Change by PMEase JIRA Administrator [07/Dec/11 04:49 PM]
Status Open [ 1 ] Resolved [ 5 ]
Assignee Steve Luo [ steve ]
Resolution Fixed [ 1 ]

Change by PMEase JIRA Administrator [07/Dec/11 04:49 PM]
Fix Version/s 3.1.67 [ 11340 ]

Change by PMEase JIRA Administrator [09/Dec/11 02:15 AM]
Fix Version/s 4.0.19 [ 11341 ]