]
Ryan Emerson resolved ISPN-7303.
--------------------------------
Fix Version/s: 9.0.0.Beta2
Resolution: Done
These types of inconsistencies have been fixed by the introduction of the
[infinispan-defaults
The configuration XSD is misleading
-----------------------------------
Key: ISPN-7303
URL:
https://issues.jboss.org/browse/ISPN-7303
Project: Infinispan
Issue Type: Enhancement
Components: Documentation-Core
Affects Versions: 7.2.3.Final
Reporter: Luz 42
Assignee: Ryan Emerson
Fix For: 9.0.0.Beta2
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/i...
{code:xml}
<xs:attribute name="purge" type="xs:boolean"
default="true">
{code}
*
http://docs.jboss.org/infinispan/7.2/configdocs/infinispan-cachestore-jpa...
However it is really *false* by default:
* {code:title=Test.java|borderStyle=solid}
@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());
}
{code}
*
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/o...