[infinispan-issues] [JBoss JIRA] (ISPN-7303) The configuration XSD is misleading
Tristan Tarrant (JIRA)
issues at jboss.org
Tue Dec 13 07:59:00 EST 2016
[ https://issues.jboss.org/browse/ISPN-7303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant reassigned ISPN-7303:
-------------------------------------
Assignee: Ryan Emerson
> 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
>
> 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
> {code:xml}
> <xs:attribute name="purge" type="xs:boolean" default="true">
> {code}
> * http://docs.jboss.org/infinispan/7.2/configdocs/infinispan-cachestore-jpa-config-7.2.html
>
> 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/org/infinispan/configuration/cache/AbstractStoreConfiguration.java#L12
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list