Kirk Lund created GEODE-2456:
--------------------------------

             Summary: Distributed Transaction dunit tests are failing during 
tearDown
                 Key: GEODE-2456
                 URL: https://issues.apache.org/jira/browse/GEODE-2456
             Project: Geode
          Issue Type: Bug
          Components: tests
            Reporter: Kirk Lund


The Distributed Transaction dunit tests are failing during tearDown. It looks 
like the JUnit tearDown thread and some other async thread are racing to delete 
diskstore files.
{noformat}
Caused by: java.nio.file.NoSuchFileException: 
./BACKUPDiskStore-0-0-org.apache.geode.disttx.DistributedTransactionDUnitTest.testPutAllWithTransactions_1.krf
        at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at 
sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
        at 
sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
        at java.nio.file.Files.delete(Files.java:1126)
        at org.apache.geode.internal.FileUtil.delete(FileUtil.java:166)
        at 
org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase.deleteBACKUPDiskStoreFile(JUnit4CacheTestCase.java:578)
        ... 28 more
{noformat}
Recommended changes:
* change from using org.apache.geode.internal.FileUtil to 
org.apache.commons.io.FileUtils
* make sure distributed transaction dunit tests aren't leaving orphaned threads 
running after test completes




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to