[infinispan-issues] [JBoss JIRA] (ISPN-10189) persistence tests fail due to shared state

Jonathan Halliday (Jira) issues at jboss.org
Tue May 14 04:48:00 EDT 2019


Jonathan Halliday created ISPN-10189:
----------------------------------------

             Summary: persistence tests fail due to shared state
                 Key: ISPN-10189
                 URL: https://issues.jboss.org/browse/ISPN-10189
             Project: Infinispan
          Issue Type: Bug
    Affects Versions: 9.4.13.Final
            Reporter: Jonathan Halliday


SoftIndexFileStoreFunctionalTest (and others with the same pattern) uses a new (differently named) cache for each test function, assuming each is created empty. However, it reuses the same persistence tmp directory for every test and doesn't clear it between test functions. Thus a new cache can load stale persistent state from a previous test, causing intermittent failures.  Perhaps use the cache name in the tmp dir path, or delete the shared dir every time, though that assumes nothing is holding an open handle on it.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list