Seeing an issue when I'm running jacoco tests through maven.
I run a build, which generates coverage reports - .exec files
When I run mvn clean it fails as it can't delete the generated .exec files. When I look at the .exec file, I can see the owner of the .exec has changed and I don't have access to delete the file anymore.
If I reboot my pc, the .exec file is now accessible again and I can delete it.
Same issue was reported here:
https://issues.jenkins-ci.org/browse/JENKINS-28636
but there doesn't seem to be a solution reported.
Thanks.
Hi,Seeing an issue when I'm running jacoco tests through maven.
I run a build, which generates coverage reports - .exec files
When I run mvn clean it fails as it can't delete the generated .exec files. When I look at the .exec file, I can see the owner of the .exec has changed and I don't have access to delete the file anymore.
If I reboot my pc, the .exec file is now accessible again and I can delete it.
Hi,
On Wednesday, August 8, 2018 at 1:17:56 PM UTC+2, Richard Ashe wrote:Hi,Seeing an issue when I'm running jacoco tests through maven.
I run a build, which generates coverage reports - .exec files
When I run mvn clean it fails as it can't delete the generated .exec files. When I look at the .exec file, I can see the owner of the .exec has changed and I don't have access to delete the file anymore.
JaCoCo has no code that explicitly manipulates with owner of created/updated files.If I reboot my pc, the .exec file is now accessible again and I can delete it.
It is strange that reboot affects owner of a file - I'm wondering whether term "owner" is used correctly or you mean something else?
The only thing that JaCoCo agent does - is a standard Java-way of locking file using https://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html#lock() to prevent concurrent writes to the same file from different processes.Corresponding code ( https://github.com/jacoco/jacoco/blob/v0.8.1/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/output/FileOutput.java#L68-L69 ) is there for about 6 years - https://github.com/jacoco/jacoco/pull/52and so far we are not aware of any problems with this.Is it possible that your build does not terminate all started JVMs? or does not terminate them gracefully?Same issue was reported here:
https://issues.jenkins-ci.org/browse/JENKINS-28636Why it is the same? "owner" is not mentioned at all.
Similarly to the resolution status "Cannot Reproduce" of this Jenkins-ticket - how to reproduce this? Which operating system you use? Which file system? Which JVM? Example of build?
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/31b43c5a-80ae-4467-a03d-e5d96e02c521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I just downloaded Windows 7 VM from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/installed JDK 8u181, Maven 3.3.9and executed "mvn clean install" on the attached simple projectwhat produced "target/jacoco.exec" - it has correct owner and can be deleted:
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/5eff5441-7b16-4679-b82b-e0bb26df515e%40googlegroups.com.
<example.zip>
<win.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/B2280EFB-B749-47B1-9FF5-08111AD9F73E%40mountainminds.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/5eff5441-7b16-4679-b82b-e0bb26df515e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<example.zip>--<win.png>
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.