[infinispan-issues] [JBoss JIRA] Updated: (ISPN-1320) indexing properties defined for <namedCache/> in xml are ignored therefore indexes are always persistent
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Mon Sep 12 09:06:26 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanne Grinovero updated ISPN-1320:
----------------------------------
Steps to Reproduce:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
xmlns="urn:infinispan:config:5.0">
<namedCache name="simple">
</namedCache>
<namedCache name="simple-searchable">
<indexing enabled="true" indexLocalOnly="true">
<properties>
<property name="hibernate.search.default.directory_provider" value="ram" />
</properties>
</indexing>
</namedCache>
</infinispan>
{code}
{code}
import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertFalse;
@Test
public class IndexingConfigurationIgnored {
Cache simpleSearchableCache;
@BeforeMethod
public void init() throws Exception {
EmbeddedCacheManager manager = new DefaultCacheManager("simple_caches.xml", true);
simpleSearchableCache = manager.getCache("simple-searchable");
simpleSearchableCache.start();
}
@Test
public void testIndexingParametersForNamedCache() {
assertFalse(simpleSearchableCache.getConfiguration().getIndexingProperties().isEmpty(), "should contain definition from xml");
}
}
{code}
was:
xml:
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
xmlns="urn:infinispan:config:5.0">
<namedCache name="simple">
</namedCache>
<namedCache name="simple-searchable">
<indexing enabled="true" indexLocalOnly="true">
<properties>
<property name="hibernate.search.default.directory_provider" value="ram" />
</properties>
</indexing>
</namedCache>
</infinispan>
UT:
import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertFalse;
@Test
public class IndexingConfigurationIgnored {
Cache simpleSearchableCache;
@BeforeMethod
public void init() throws Exception {
EmbeddedCacheManager manager = new DefaultCacheManager("simple_caches.xml", true);
simpleSearchableCache = manager.getCache("simple-searchable");
simpleSearchableCache.start();
}
@Test
public void testIndexingParametersForNamedCache() {
assertFalse(simpleSearchableCache.getConfiguration().getIndexingProperties().isEmpty(), "should contain definition from xml");
}
}
> indexing properties defined for <namedCache/> in xml are ignored therefore indexes are always persistent
> --------------------------------------------------------------------------------------------------------
>
> Key: ISPN-1320
> URL: https://issues.jboss.org/browse/ISPN-1320
> Project: Infinispan
> Issue Type: Bug
> Components: Querying
> Affects Versions: 5.0.0.FINAL
> Reporter: Jan Slezak
> Assignee: Sanne Grinovero
> Fix For: 5.0.2.FINAL, 5.1.0.ALPHA2 , 5.1.0.FINAL
>
>
> indexing properties defined for <namedCache/> in xml are ignored therefore indexes are always persistent; see reproduction steps for xml / UT
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list