Bug 516351 - [tests] testInspectClassFileFromJar randomly fails to delete JarRefProject on teardown
Summary: [tests] testInspectClassFileFromJar randomly fails to delete JarRefProject on...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.7   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: 4.7 RC1   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2017-05-09 05:50 EDT by Andrey Loskutov CLA
Modified: 2017-05-29 15:15 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2017-05-09 05:50:06 EDT
http://download.eclipse.org/eclipse/downloads/drops4/I20170508-2000/testresults/html/org.eclipse.jdt.debug.tests_ep47I-unit-win32_win32.win32.x86_8.0.html

Problems encountered while deleting resources.

org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
at org.eclipse.core.internal.resources.Resource.delete(Resource.java:773)
at org.eclipse.core.internal.resources.Project.delete(Project.java:324)
at org.eclipse.jdt.debug.tests.sourcelookup.JarSourceLookupTests.tearDown(JarSourceLookupTests.java:113)
at org.eclipse.jdt.debug.tests.AbstractDebugTest.runBare(AbstractDebugTest.java:2528)
at org.eclipse.jdt.debug.tests.DebugSuite$1.run(DebugSuite.java:57)
at java.lang.Thread.run(Thread.java:745)
Contains: Could not delete 'C:\shared_hudson\workspace\ep47I-unit-win32\workarea\I20170508-2000\eclipse-testing\test-eclipse\eclipse\jdt_folder\JarRefProject'.
org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:139)
at org.eclipse.core.internal.resources.ResourceTree.internalDeleteProject(ResourceTree.java:443)
at org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:850)
at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1785)
at org.eclipse.core.internal.resources.Resource.delete(Resource.java:760)
at org.eclipse.core.internal.resources.Project.delete(Project.java:324)
at org.eclipse.jdt.debug.tests.sourcelookup.JarSourceLookupTests.tearDown(JarSourceLookupTests.java:113)
at org.eclipse.jdt.debug.tests.AbstractDebugTest.runBare(AbstractDebugTest.java:2528)
at org.eclipse.jdt.debug.tests.DebugSuite$1.run(DebugSuite.java:57)
at java.lang.Thread.run(Thread.java:745)
Contains: Could not delete: C:\shared_hudson\workspace\ep47I-unit-win32\workarea\I20170508-2000\eclipse-testing\test-eclipse\eclipse\jdt_folder\JarRefProject.
java.nio.file.FileSystemException: C:\shared_hudson\workspace\ep47I-unit-win32\workarea\I20170508-2000\eclipse-testing\test-eclipse\eclipse\jdt_folder\JarRefProject: The process cannot access the file because it is being used by another process.

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:220)
at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:137)
at org.eclipse.core.internal.resources.ResourceTree.internalDeleteProject(ResourceTree.java:443)
at org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:850)
at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1785)
at org.eclipse.core.internal.resources.Resource.delete(Resource.java:760)
at org.eclipse.core.internal.resources.Project.delete(Project.java:324)
at org.eclipse.jdt.debug.tests.sourcelookup.JarSourceLookupTests.tearDown(JarSourceLookupTests.java:113)
at org.eclipse.jdt.debug.tests.AbstractDebugTest.runBare(AbstractDebugTest.java:2528)
at org.eclipse.jdt.debug.tests.DebugSuite$1.run(DebugSuite.java:57)
at java.lang.Thread.run(Thread.java:745)
Contains: Could not delete 'C:\shared_hudson\workspace\ep47I-unit-win32\workarea\I20170508-2000\eclipse-testing\test-eclipse\eclipse\jdt_folder\JarRefProject'.

The log says (and I guess this was the indexer (bug 406170?) holding the jar opened):

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:53.386
!MESSAGE [testTranslateContainers] setUp

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.393
!MESSAGE [testTranslateContainers] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:53.394
!MESSAGE [testTranslateContainers] Trying to cancel running jobs: [JDI Event Dispatch(1233)]

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.400
!MESSAGE [testTranslateContainers] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.519
!MESSAGE [Creating project: JarProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.650
!MESSAGE [Creating project: JarProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.836
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1, 'Building workspace'/org.eclipse.core.internal.events.AutoBuildJob, 'Decoration Calculation'/org.eclipse.ui.internal.decorators.DecorationScheduler$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:53.964
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:54.162
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:54.285
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1, 'Java indexing... 24 files to index (/JarRefProject)'/org.eclipse.jdt.internal.core.search.processing.JobManager$1ProgressJob

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.204
!MESSAGE [waitForBuild] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:55.297
!MESSAGE [testTranslateContainers] tearDown

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.305
!MESSAGE [testTranslateContainers] Some job is still running or waiting to run: 'Periodic workspace save.'/org.eclipse.core.internal.resources.DelayedSnapshotJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:55.306
!MESSAGE [testTranslateContainers] Trying to cancel running jobs: [Periodic workspace save.(8), JDI Event Dispatch(1233)]

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.312
!MESSAGE [testTranslateContainers] Some job is still running or waiting to run: 'Periodic workspace save.'/org.eclipse.core.internal.resources.DelayedSnapshotJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:55.313
!MESSAGE [testInspectClassFileFromJar] setUp

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.320
!MESSAGE [testInspectClassFileFromJar] Some job is still running or waiting to run: 'Periodic workspace save.'/org.eclipse.core.internal.resources.DelayedSnapshotJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:55.320
!MESSAGE [testInspectClassFileFromJar] Trying to cancel running jobs: [Periodic workspace save.(8), JDI Event Dispatch(1233)]

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.327
!MESSAGE [testInspectClassFileFromJar] Some job is still running or waiting to run: 'Periodic workspace save.'/org.eclipse.core.internal.resources.DelayedSnapshotJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.468
!MESSAGE [Creating project: JarProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.584
!MESSAGE [Creating project: JarProject] Some job is still running or waiting to run: 'Searching for markers'/org.eclipse.ui.internal.views.markers.MarkerUpdateJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.719
!MESSAGE [Creating project: JarProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.877
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'Java indexing... 1 files to index (/JarRefProject)'/org.eclipse.jdt.internal.core.search.processing.JobManager$1ProgressJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:55.995
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'Java indexing... 1 files to index (/JarRefProject)'/org.eclipse.jdt.internal.core.search.processing.JobManager$1ProgressJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:56.177
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'Java indexing... 1 files to index (/JarRefProject)'/org.eclipse.jdt.internal.core.search.processing.JobManager$1ProgressJob, 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:56.288
!MESSAGE [Creating project: JarRefProject] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-08 23:03:57.301
!MESSAGE [waitForBuild] Some job is still running or waiting to run: 'JDI Event Dispatch'/org.eclipse.jdt.internal.debug.core.EventDispatcher$1

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-08 23:03:59.313
!MESSAGE [testShowClassFileFromJar] setUp
Comment 1 Eclipse Genie CLA 2017-05-10 09:22:34 EDT
New Gerrit change created: https://git.eclipse.org/r/96733
Comment 3 Noopur Gupta CLA 2017-05-11 06:47:22 EDT
(In reply to Eclipse Genie from comment #2)
> Gerrit change https://git.eclipse.org/r/96733 was merged to [master].
> Commit:
> http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=2fed99cbc9a44cc8b29fef86a12aa87ee824eadd
> 

Andrey, is this issue fixed now?
Comment 4 Andrey Loskutov CLA 2017-05-11 07:05:33 EDT
(In reply to Noopur Gupta from comment #3)
> (In reply to Eclipse Genie from comment #2)
> > Gerrit change https://git.eclipse.org/r/96733 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=2fed99cbc9a44cc8b29fef86a12aa87ee824eadd
> > 
> 
> Andrey, is this issue fixed now?

We will see :-) This is a random issue, and I would prefer to keep the bug open for a few days. I'm monitoring the tests and I will close it in a week or so.
Comment 5 Sarika Sinha CLA 2017-05-18 02:07:43 EDT
@Andrey,
Do we want to move it to 4.8 to observe for more time ?
Comment 6 Andrey Loskutov CLA 2017-05-18 03:02:56 EDT
(In reply to Sarika Sinha from comment #5)
> @Andrey,
> Do we want to move it to 4.8 to observe for more time ?

I think we can close this one, I haven't seen this failure for a week now.
Comment 7 Andrey Loskutov CLA 2017-05-29 15:15:09 EDT
20 days no failures, let say it is verified.