Joseph Percivall created NIFI-2495:
--------------------------------------
Summary: testModifyIndexWhileSearching breaks Windows build
Key: NIFI-2495
URL: https://issues.apache.org/jira/browse/NIFI-2495
Project: Apache NiFi
Issue Type: Bug
Reporter: Joseph Percivall
Priority: Blocker
Fix For: 1.0.0, 1.0.0-Beta
On Windows this[1] test fails every time with IoException[2] due to not being
able to delete files because they are still in use.
[1]
https://github.com/apache/nifi/blame/16348b071d361697f517397b2da2ea32c5599c11/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/test/java/org/apache/nifi/provenance/TestPersistentProvenanceRepository.java#L489
[2] java.io.IOException: Unable to delete
C:\nifi\nifi-nar-bundles\nifi-provenance-repository-bundle\nifi-persistent-provenance-repository\target\storage\6175506c-583b-4161-8c09-d1d6bdfbbe63\index-1470413655530\_0.cfs
at org.apache.nifi.util.file.FileUtils.deleteFile(FileUtils.java:252)
at org.apache.nifi.util.file.FileUtils.deleteFiles(FileUtils.java:242)
at org.apache.nifi.util.file.FileUtils.deleteFile(FileUtils.java:248)
at org.apache.nifi.util.file.FileUtils.deleteFiles(FileUtils.java:242)
at org.apache.nifi.util.file.FileUtils.deleteFile(FileUtils.java:248)
at
org.apache.nifi.provenance.TestPersistentProvenanceRepository.closeRepo(TestPersistentProvenanceRepository.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)