Details
-
Enhancement
-
Resolution: Done
-
Major
-
7.2.3.Final
-
None
Description
The configuration XSD is misleading concerning the store property: purge on start-up (and may be others too).
This indicates that is is true by default:
- https://github.com/infinispan/infinispan/blob/master/server/integration/infinispan/src/main/resources/schema/jboss-infinispan-core_7_2.xsd#L717
<xs:attribute name="purge" type="xs:boolean" default="true">
- http://docs.jboss.org/infinispan/7.2/configdocs/infinispan-cachestore-jpa-config-7.2.html
However it is really false by default:
- Test.java
@Test public void test() throws Exception { String xml = "<infinispan>" + " <cache-container>" + " <local-cache name=\"test\">" + " <persistence>" + " <file-store/>" + " </persistence>" + " </local-cache>" + " </cache-container>" + "</infinispan>"; DefaultCacheManager mgr = new DefaultCacheManager(new ByteArrayInputStream(xml.getBytes())); assertFalse(mgr.getCache("test").getCacheConfiguration().persistence().stores().get(0).purgeOnStartup()); }
- http://infinispan.org/docs/7.2.x/user_guide/user_guide.html#configuration_2
- https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/configuration/cache/AbstractStoreConfiguration.java#L12