Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2743

JGroupsDynamicMasterElectionTest fails on Windows

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0.Beta3
    • Component/s: backend, tests
    • Labels:
      None

      Description

      This test started to fail recently with the following error:

      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:

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: