We're updating the issue view to help you get more done. 

JGroupsDynamicMasterElectionTest fails on Windows

Description

This test started to fail recently with the following error:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 masterElection(org.hibernate.search.test.jgroups.common.JGroupsDynamicMasterElectionTest) Time elapsed: 1.857 sec <<< ERROR! java.nio.file.AccessDeniedException: C:\DOCUME~1\hudson.MSDOMAIN\LOCALS~1\Temp\hsearch-tests-3365087708292725535\indextemp-JGroupsDynamicMasterElectionTest\b4506653\org.hibernate.search.test.jgroups.master.TShirt\_0.cfs at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) 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.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at org.hibernate.search.util.impl.FileHelper.deleteOrFail(FileHelper.java:251) at org.hibernate.search.util.impl.FileHelper.delete(FileHelper.java:237) at org.hibernate.search.util.impl.FileHelper.access$000(FileHelper.java:33) at org.hibernate.search.util.impl.FileHelper$1.visitFile(FileHelper.java:220) at org.hibernate.search.util.impl.FileHelper$1.visitFile(FileHelper.java:217) at java.nio.file.Files.walkFileTree(Files.java:2670) at java.nio.file.Files.walkFileTree(Files.java:2742) at org.hibernate.search.util.impl.FileHelper.deleteRecursive(FileHelper.java:217) at org.hibernate.search.util.impl.FileHelper.delete(FileHelper.java:193) at org.hibernate.search.test.DefaultTestResourceManager.ensureIndexesAreEmpty(DefaultTestResourceManager.java:162) at org.hibernate.search.test.DefaultTestResourceManager.defaultTearDown(DefaultTestResourceManager.java:190) at org.hibernate.search.test.jgroups.common.DynamicMasterSlaveSearchTestCase.tearDown(DynamicMasterSlaveSearchTestCase.java:70)

I believe it's possible that some resources have not been closed correctly, we need to investigate that.

This happened in the internal QA lab:

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major