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

Dan Berindei (Jira) issues at jboss.org
Tue May 14 08:38:00 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733185#comment-13733185 ] 

Dan Berindei commented on ISPN-10189:
-------------------------------------

{{SoftIndexFileStore}} is probably the only one affected, because the other stores usually include the cache name in the location/table name so that the location can be defined in a single place (used to be the default cache, now a configuration) for multiple caches.

> 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
>            Priority: Major
>
> 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